On the Mercury sleepers, they were factory options for Peterbilt back in the day. The factory would make the truck ready for the sleeper, the sleeper would be built at Mercury, the truck sent over there, then the sleeper installed and painted (or vice-versa) to match the truck, then sent back to Peterbilt for finishing and on to the dealer.
Tim