It is an inconvenience though, even if as insignificant as an eyesore for others, or the landscaper who may need to remove shopping carts from the planter to do their work.
You could apply similar logic to people who carelessly throw trash in the recycling bin or on a sidewalk where it’s someone else’s job to clean up after them. I’ve seen people go as far as to say they are graciously “providing a job” for someone else when they throw their refuse in the recycling bin.
The fact that the shopping carts are such an inconsequential thing to shrug off is what makes them a great litmus test — will you do the right thing simply because it’s the right thing to do, even when there is so little at stake