Spain has security checks at their major stations for high speed trains including to go to France, but France does not
And I really don’t want to live in a country where boarding a train is as painful as boarding a plane. Millions of people are using train to commute, adding security checks would totally kill the train.