It did indeed own it, But the BLM took over managing the grazing with the ranchers at a later date.
If the U.S. owns the land, they get to make the rules about who uses it and how it is used.