Sorry I don't know the reason but I get it too. I am thinking it's something to do with relaxin maybe and my legs just stretching further than they should

Anyway I have found a pillow between my legs when sleeping really helps me.