Lots of birds will stand on one foot.
Much of the time it’s to conserve heat by tucking the up foot into the belly feathers.
Our parrot will sometimes do that when she’s settling down for a nap.
Many birds have locking joints in their feet and legs so that they can settle into a position to sleep. They unlock when they pick the leg up.
Welcome to Fluther, @babydoll. I’ve never heard of this bird… but I have seen many birds do this, especially wading and shore birds. I thought it was to conserve energy while resting.
To completely and baselessly speculate, and most likely being wrong, it could be a side effect of one half of the bird’s brain going to sleep, causing the connected limb to automatically retract.