They fall under a special category in capitalist countries known as “guard labour”.
The more economically unequal a country is, the larger the percentage of its total workforce devoted to guard labour tends to be. Economists Bowles and Jayadev estimated that percentage in the U.S. at 25% in 2010. It’s grown since then.