That was due to the street drug trade. Pay phones were used to set up deals and deliveries. People who lived or had businesses nearby cut the cords to discourage such usage. Some phone companies disallowed incoming calls to certain pay phones to cut down on the vigilantism, but that wasn’t enough.
Or to collect ransom that kept Dirty Harry running all over the city.