isn't that due to actual full capacity (restaurants) and fire code (clubs)? i don't think either one has the ability to schedule their customers throughout the day or take another approach to reservations.
Clubs will keep a line out the door by instructing the bouncer to slowly let people in or to randomly decide to not let anyone in at a given time (when the line is not long enough).
Restaurants will do this by having the waiting area artificially small. Restaurants where you order before you sit down will have the cash registers near the door, and understaff the registers.