I did not usually see a free roaming cart though. Maybe times have changed. Usually, people would prop them up against a curb, or ditch them into a grassy spot, or they would put them by a low spot in the parking lot next to a drain, or put them next to a column on the sidewalk.
Just my anecdotal experience, it seemed like people would put their cart back if there was a cart corral in the center of every parking row.
Walmarts around me seem to have a corral every ten or so cars, hordes of them. I still encounter strays and that’s with them seeming having a dedicated cart cowboy (with his little train).
I once calculated the number of carts Walmart has worldwide and it was mind-boggling.