Why is my Tamagotchi watching TV/ Rolling around on the floor/ etc?

These are random animations. They happen when you have not touched your Tamagotchi in a while. Just press any of the three buttons on the front of the Tamagotchi to stop it from doing the random animation.