They often have heavy wing cases, which pull their bodies upside down. Also their legs pull together as the muscles tighten, making them unstable on their front,
Their legs stiffen and straighten thus making them top heavy and over they go.
Why do bugs lay belly up when they're dead?