Sex Dream and I got CAUGHT!

So what happen was one night I was just sleeping and I have the weirdest dream. I never had this dream like ever and this time it was so vivid like the dream is so vivid and I’m trying to figure out why did I have that type of dream and the fact that this time like it was so good like it was good and everything but we barely had sex yet, he was kissing me on my neck over and over again and he barely touch me and it was like early in the morning in the dream that’s what I remembered and then my mom walked in to my room as I was opening the door and she came in my room so we ended up bumping into each other. As soon as I saw her face I start bawling out crying and saying I’m sorry I didn’t mean to let you caught us like this and she just looked at me disappointed and after that I just woke up and that was it to the dream. I woke up panicking actually. I’ve never had a sex dream about that vivid to where I would wake up remembering every detail of the dream like last night can anyone figure out why ?