I'm sure the deposit is just to encourage people to put the carts back where they belong, reducing the amount of work staff need to do outside the store.
If you're going to steal a shopping cart, the quarter won't factor in.
The exits are narrow with soft soil and low hedges bordering the paths. You can lift a trolley over, but you need some muscle, especially if your trolley is full of shopping.
Dunno if that still works, but I enjoyed defeating the locking mechanism at Safeway when I was a kid even though I didn’t even want the shopping cart.
And in supermarkets with large car parks there are return stations all over the car park. Which means you still need to pay trolley herders...
In denser cities where it's just not practical to put your supermarkets impractically far away from literally anyone who might sometimes want to buy some food, what you typically see is some sort of system where the wheels automatically lock up if you try to take the cart outside the parking lot. Which, compared to the Aldi system, always seemed to me like a $10 solution to a $0.10 problem.
https://www.thomas-clemens-photography.de/blog/es-gibt-eine-...
Maybe that's not so much a problem in the US, where I imagine supermarkets may not be in the city center but mostly reachable by car and thus less foot traffic to take the carts?
But maybe the deposit here in Europe is just silly? I do know many supermarkets lock their carts up for 1st of May for example and anyway, one euro or one of those plastic discs is not hard to come by, so it is not much of a detriment.