sleeping on floor

Learic

my daughter is 23 months old. She’s almost 2 , she’s been in a toddler bed since she was may be 19 or 20 months all the synonym for the past two weeks. Every time I put her in her bed she’ll cry get up and lay on the floor in front of the room door. She’s never had a issue sleeping in a crib or her toddler bed until the past few weeks. I’m so confuse she’s never been a bad sleeper. She’s always want to sleep in her crib and in her bed every time I get up and move her she gets right back up and decides to sleep on the floor is to the point where after I let her in her bed, I go ahead and make a little pallet for her right in front of her room door because I don’t want her sleeping on a hardwood floors why is she doing this?