What does it mean when someone who rejected you asks why you liked him?

I confessed to my crush 7 months ago, he texted me yesterday for the first time in 7 months asking why I liked him. I told him a few things and then asked why, he responded with, "Because I dont think girls would be interested in me." I don't know why he sent this, it sounded like he was fishing for a compliment or something. Why do you think he asked this to me? Like at this point I'm almost over him and suddenly he comes back?
Yesterday I met him after he texted me 10 minutes later I see him and have to serve him at the waterpark consessions I work at. He waved and laughed at my shyness, I'm happy and totally surprised that I saw him. But totally confused on why he decided to text me months later, it makes me a bit upset actually. I was doing totally fine and I feel like a second option now.
What does it mean when someone who rejected you asks why you liked him?
Post Opinion