You also have to realize that a lot of these people are making deliveries in suburban residential neighborhoods where the number of public restrooms rounds off to zero, and you can't just go inside somebody's house.
Given a choice between peeing in a bottle or driving 30 minutes round trip to the nearest public restroom, I'm not about to condemn anyone who picks the first one purely out of convenience.