dreaming of pee and actually wetting bed?!?

I just had a extremely vivid dream I was peeing in a bathroom on a toilet to be rudely  reminded I'm in my bed😩😖... Has this happened to anyone else and do you know why this happens?!!
Also would like to add I'm 4 months pp, not sure if that makes a difference.
(Not a lot but enough to be embarrassed, cleaning now😂)
Fyi- yes I know this is gross, don't remind me 😂😕