Handrails don't keep off-trail hikers from hiking off trail. Trail etiquette keeps people on trail. Respect to nature keeps people on trail.
Garbage cans in the middle of nowhere still need to be emptied or else they become full and no longer serve the need. A lot of these places are remote. It might take several hours to empty one trash can. Our parks barely have enough resources to maintain as they are. We shouldn't need to pay someone to hike in and remove your trash. I don't think it is too much to ask that if you hiked in with 5 full snickers bars that you hike out with their wrappers. Your pack always gets lighter as you go so there really is no excuse for not coming out with all your trash.