Why has Apple and other cell phone makers & providers done so little to protect against spam?

I get a lot (I mean a lot) from area code 771 as well. I believe that’s nominally Washington, DC.