Nobody who does this is not aware that returning the shopping card is the normal, expected, and 'right' behavior. There just isn't a moral hazard that prevents them from doing the wrong behavior.
I think there is a larger philosophical/moral question of WHY should someone do the 'right' thing in the absense of a moral hazard. It's something I've thought a lot about over the last couple of years.
As the 4chan Shopping car theory points out, the cost of leaving the cart is zero. And the benefit is the saved time/energy. Why shouldn't a rational self-optimizing person leave the cart there? Why shouldn't they hold the subway door open to catch the train? Why shouldn't they pull up the very front of the offramp and merge at the last second? Zero cost, all benefit.
I have a self-motto of 'do the right thing' in virtually anything I do. In those examples, I'd return the carts, wouldn't hold a train door open, and would miss an exit and turn around.
But WHY do I do it? Why do I feel like I HAVE to do it? Am I actually experiencing any benefit in life over those who don't?