The problem is that if every herdsman does this, the grazing of the cattle will quickly exceed the carrying capacity of the pasture. When the common resource has been exhausted, all the herdsmen will face ruin because they rationally sought to maximize self-interest.