Why the heck is my toddler doing this?

So recently my 3 year old started humping the bed when she’s tired, it’s weird and I have no idea where this came from. I told her not to do that and she will stop for a bit but then will go right back to it. Anyone else’s toddler do this? I don’t even know how to react right now. This is so weird.