That's different. Shift work - also around the clock - is allowed, as long as the individual worker's rest times are respected. The point being that there are three shifts of each 8 hours, not one worker works 24 hours.
The only overnight operations during my short time there I really saw were essential services such as in security, hospitals, and transportation industries.
Night shift workers do take a huge health hit, both physical and mental, and a social life hit, and I could see a government like Germany's putting some controls over night shifts for non-essential services, so wondering if that was the case or not.
24 hour stores not being a thing is a separate issue: there are laws that regulate opening hours for stores and they generally do not allow for 24/7.