Trains require a lot more infrastructure, which is why they are at a cost disadvantage. The miles of constructed track, power lines, bridges, etc cost a lot of money to build and maintain, while planes just use the air, which is basically free.
I wouldn’t be surprised if, for very short flights, we still used planes once they convert to electric (which is relatively viable for short flights now).