Perhaps Lamech ruled over much of the pre-Flood world, and he gave his sons control over these various industries.

Source: A Pre-Flood Empire? | Answers in Genesis