In France, it mostly comes down to a price issue. On one hand, flights are massively subsidized and can be extremely cheap. On the other hand, train is not subsidized at all and can be pretty pricey.
Recently though, things are changing and making a Paris - Nice by train is becoming somewhat financially doable.