These are very broad classifications that mostly serve to provide pretext for rejecting projects or exacting fees. In San Francisco a protected tree is any tree with a diameter of 15" or more (specifically, a circumference of 48" or more). It'll cost you upwards of $500 in mandatory permits and fees alone to remove any (and each) such tree, even if it's a foregone conclusion that it needs to be removed. And if you remove it without spending the money and time on the permit, you'll face thousands of dollars in fines.
The whole system is fscked up. Whether it was proper, legal, or otherwise for that "mansion" to be built, I have no opinion. But the existing regulations and permitting systems in California are wholly ridiculous; clearly, directly, and unequivocally responsible for an immense amount of social problems, including social inequities in this state; and outside a court of law, and without more context, deserve little deference regarding legitimacy and efficacy.
In fact, the system has the overall effect of injuring rule of law by making it difficult, not to mention often times economically infeasible, to obey the letter of the law. It turns the community into scofflaws. If the law and law-abiding community is the only thing protecting a resource, then it's of paramount importance to maintain the legitimacy of and respect for the law, even if that means sometimes making sacrifices and compromises regarding what you would like to accomplish with the law.
Also, I just realized that I was quoting from the South San Francisco Code. https://library.qcode.us/lib/south_san_francisco_ca/pub/muni...
Edit: SF Code is less strict than South SF or Marin. SF has "significant" and "landmark" trees. The former is 12" diameter or greater and within 10 feet of a public right of way. The latter is by individual designation only, AFAICT. See https://codelibrary.amlegal.com/codes/san_francisco/latest/s... and https://codelibrary.amlegal.com/codes/san_francisco/latest/s...
48" circumference / 15" diameter could be 15-20 years old, if not younger, for some commonly planted trees. The horrible strawberry tree planted at my curb by the previous homeowner couldn't be much older than about 15 years (they bought the house circa 2007), and it's already close to that diameter even though it's categorized as a slow grower. The trunk splits just above chest height, giving it an advantage by that metric relative to how it grows in the wild, but that probably wasn't an accident. (I couldn't find a proper growth factor number, perhaps because the growth rate of the trunk isn't uniform through its life?) It's a common tree in San Francisco as it is (or at least was) a favorite of the Friends of the Urban Forest, but it creates too much detritus and is now disfavored by the city. Fast growing species of maple and cottonwood are especially common out in the suburbs.
..."nor be deprived of life, liberty, or property, without due process of law; nor shall private property be taken for public use, without just compensation."
https://law.justia.com/constitution/us/amendment-05/16-just-...
"A taking can come in two forms. The taking may be physical, which means that the government literally takes the property from its owner). Or the taking may be constructive (also called a regulatory taking), which means that the government restricts the owner's rights so much that the governmental action becomes the functional equivalent of a physical seizure. "
The Legislature’s intent in enacting this section in 1982 and in expanding its provisions since then was to significantly increase the approval and construction of new housing for all economic segments of California’s communities by meaningfully and effectively curbing the capability of local governments to deny, reduce the density for, or render infeasible housing development projects and emergency shelters. That intent has not been fulfilled.
It looks like it's intended to allow for the construction of everything, not just affordable and accessible housing.
https://leginfo.legislature.ca.gov/faces/codes_displaySectio...