Chinese aviation industry is special, a lot of their airspace is military and is closed to commercial aviation which leads to heavy congestion and thus late arrivals and not a lot of slots. Those high speed trains end up being workhorses for their transportation infrastructure.
A quick search seems to show that a high speed rail ticket is significantly cheaper than flying. Most high speed rail projects that have to, more or less, cover their own costs tend to cost about the same as flying.