What does the reason make me feel attracted to older men?

In my university there is a guy who is so attracted to me and he is a good guy as well as he texts me every day but I’m attracted to my professor who is used to give a lot attention and he is attracted to me but starts ignoring me suddenly I think he knows that I have feelings for him because I can’t hide them in addition he’s afraid of losing his career
Updates
1 mo
How can I stop attracted to older people 😔
What does the reason make me feel attracted to older men?
Post Opinion