It's surprising to me US carts don't have to be unlocked by a coin (which you get back when you lock your cart again), it's like that in every supermarket I know in France and Germany and probably many other European countries.
You can misbehave but it costs you a little bit, and if you do someone has the opportunity to make a buck off you by cleaning after you.