This system began as a result of wage caps during World War II, and then expanded when preferential tax treatment for employer plans was codified into law.
The rules for the daily deal offerings for Groupon and Living Social and the 500 or so other sites in this space are not exactly codified into law (at least not yet) but there are certain rules that people just understand as applying.