It happens because you are probably not drinking or eating anything/enough before you sleep.
Happens to me. Caused by lack of liquids in your throat and such.
I was also afraid my parents might suspect something but I make it seem like a morning voice thing rather.
I'm actually surprised your mom got suspicious. What did she say that made it seem like she almost knew?