Why were taxes collected by the rulers of the mahajanapadas?
As the rulers of the mahajanapadas were building huge forts and maintaining big armies, they needed more resources. So, instead of depending on occasional gifts brought by people, as in the case of the raja of the janapadas, they started collecting regular taxes.