Interestingly, as an American, literally the only time I've had my luggage poked through by an armed guard was in a social democracy in Europe.
To add another example to your list -- the TSA also has their own police (e.g. Federal Air Marshal Service), but they don't work the line screening your baggage.
https://en.m.wikipedia.org/wiki/Law_enforcement_in_the_Unite...
If you are doing something illegal, they call the police, and the police arrest you.
Or is it “huh europe is weird they give their TSA agents guns instead of having the transport security and also airport police?”