Stated this way it makes it sound as if the government, unbidden by anything external, just decided to make this a requirement one day. Of course, this was not the case.
In reality workers, unions and even industry leaders themselves were already pushing for this decades before the government codified it in the Fair Labor Standards Act.