Some people did indeed abuse that knowledge, but it was rare.
A few people were, by request, "ex-directory" and not listed, but again, that was rare.
Most people were not only absolutely fine with their phone number being public info, it was more useful then than a publicly-known email address is now.