It’s not about security, it’s about makin’ the Amurrican public “feel safe.”
It’s about protecting the right of the airlines to overbook the flights and if you sell off your return ticket (because roundtrips at least once upon a time could possibly be cheaper than a single fare one way) then they are less likely to have open seats.
Now the airlines just kick you off and take the higher fare and “screw you”.