Airplanes aren't as safe as trains!
In the US, air travel is safer by an order of magnitude. According to the National Safety Council, scheduled airlines have a passenger fatality rate per 100,000,000 miles of 0.001 while rail has a fatality rate of 0.025. Hell, busses are safer with a fatality rate of 0.0066.
I'm sure rail safety is probably better in Europe and Japan since they have better rail infrastructure and more passengers.
A /r/dataisbeautiful post from several years ago also shows a similar story.
I averaged data from 2016 to 2022. What am I cherry picking?