You can board a train within a few minutes of the departure time. You can just enter the train station and walk to the train you want to take. Train stations tend to be in the city center, where it’s very easy to get to.
Boarding an airplane ends a long time before the planned departure time. You need to go through security and border control. Airports tend to be in remote locations.
It's not but a lot of people tend to write it off for trains because it's often city center to city center with no security. So it can be (usually is) at least less overhead.
If anything it’s less of an issue with trains than with flying - time from the street to the vehicle and vice versa is smaller with trains, and train stations are generally less remote than airports.
also, you can take overnight trains. I find it very comfortable - you wake up and enjoy your day in some nice town, then go back home. Great weekend getaway without really spending awake time on travel, airports, security etc
More startup/shutdown overhead in exchange for bigger peak velocity