Why did the Mayans create a detailed writing system?

Ato keep track of trade

Bto keep track of the seasons

Cto keep track of political rulers - I think it's C

Dto keep track of families