Old-fashioned underwear (called long johns) used to have an actual flap in the back that covered up the butt - or that could be unfastened and let down so that you could use the outhouse (they didn't have indoor Plumbing back then either).
The rear opening on long underwear was sometimes called a buttflap.