Why did he stop flirting and paying attention to me?

he used to always flirt with me and say hi, now he just acts like I'm not even there. btw its not like I don't know him we are friends. I've never flirted back with him because I am to shy.