Sex Dreams

Lately I've been having sexy dreams about a close male friend of mine. I had feelings for him a long time ago. But I haven't  seen or spoken to him in awhile. So why am I having sex dreams about him?