It's for much longer distances.
There are flights between St Petersburg and Moscow. About 10 daily. It's about 1 hour. Together with everything you described, it's more like 4 hours. A high-speed train is also 4 hours. So the only people who choose to fly are those who have a connection or those who couldn't get a train ticket because those are always in high demand.