why do I keep having sexual dreams about my teacher?

I keep having very very graphic sexual dreams about my gym teacher.. he's very attractive, but I would never think of doing that in real life... or would I? I don't know what to do.. now I just feel awkward around him and he wonders why I keep avoiding him. Has this happened to anyone else? What should I do about it?