Why is my teacher ignoring me?

So my teacher was soo much friendly with me than all the other children (Everyone of my friends noted that ) before 4 days he suddenly started ignoring me. When we had physical sessions , he always talked to me in class and now we are having online sessions , even in online sessions he used to pick on me to answer questions even if my hand isn’t raised , he always asked if everythings clear , he always repeated my name in the class for jokes …I was literally the so called “ teachers pet” type of student.(my friends said) . But suddenly my teacher started ignoring me and I’m pretty much sure I didn’t do anything to annoy him or for him to get angry. It’s sudden. He doesn’t ask me questions, he doesn’t even care if I’m in the class. Why do you think he is ignoring me?
Why is my teacher ignoring me?
Post Opinion