Why did I dream of person I lost interest in?

Long story short, I used to fantasize about him 2 years ago but never dreamed of him. Recently there has been nothing but negative energy. I cussed him out and I’m sure he doesn’t like me. I saw him get in his house at 6am and I went back to bed. I had a dream and all I can remember was him telling me, “if you wanted to fuck why didn’t you just say something” it wasn’t a romantic dream and that’s all I remember about the dream. Why would I dream about him? I used to think about him a lot and even felt connection but I never dreamed about him. It’s been negative energy lately and I feel the connection was lost. Years later, I don’t even think that way anymore and I had a dream about him why?
Why did I dream of person I lost interest in?
Post Opinion