I mean, it's right next to the road, so the idea is probably to keep the dog from walking into traffic.
But that's a bit of short minded as they introduce the heat of the pavement, inability for the dog to lay down and control their temperature while also blocking someone elses bike. And this is all added onto the fact that you really shouldn't tie your dog to stuff and leave them for a while anywhere in fairly populated areas.