The best answer to why cattle owners had to buy private property on which to keep their cattle is:
Farms and the railroads carved up the open range.
As the expansion of agriculture and infrastructure like railroads increased, the open range that cattle owners relied on for grazing was significantly reduced, leading them to purchase land for their cattle.