Answer
Hereditary occupational categories were assigned to households by the Hongwu Emperor. He did this to keep the population in check and ensure that everyone was contributing to the economy. The categories were based on the family's occupation, and they were passed down from generation to generation. This system helped to maintain social order and stability in China.