While I agree with the general sentiment, the problem here isn't developers not being familiar with statistics, it's the simple fact all of this is profit driven most of the time.
I tried to purchase tickets for an event last week. I had to go through Ticketmaster as it was the only official way. They forced me to verify my account using a phone number, but whoever they were using for messages wasn't able to deliver a code to my number. I tried a few numbers from our household and they all failed.
Searching for this issue yielded a bunch of results, so it was definitely a known issue, but there wasn't anything I could do, really. To them, it's simple math. Another SMS provider that covers my (tiny EU) country might be more expensive. They might be avoiding scammers that used my mobile operator in the past. Whatever it is, it would probably cost them more than they lose in ticket sales.
Without some government entity to force them, they don't give a shit about me being able to see an event.
Yea, when this topic comes up on HN, a lot of the usual excuses appear: It's hard to write software that works everywhere! It takes too long to test on more than one browser! It's too expensive to hire someone to port to X platform! We're trying to bootstrap in a hurry--there's no time to support Y people! Everybody should just upgrade to the latest, why should we test on older systems?
These are attitudes come from the privilege of never having been in that 2% of users, and I think we have them until that one day we end up being in that 2% and can't use the system ourselves.
When I wrote iOS apps, I was constantly infuriated by the tech lead's and product management's insistence to only support the current major OS version and the previous one. Engineers would take time out of their day to rip out support for iOS X-2 (rather than fixing bugs, working on performance or features)! Code that wasn't in the way of refactors, wasn't really buggy, wasn't harming anything architecturally. To me, it just looked like Griefing The User. I didn't get it and I still don't. Now, I have a 8 year old phone, and lo and behold, half of the apps in the AppStore don't even work on it anymore because of this attitude, so I guess I'm firmly in the 2%.
I think when you say “profit motivated” the underlying principle is actually utilitarianism; doing the most good for the most people, for which profit Is merely an imperfect proxy.
Infrastructure should not be (purely) profit driven. To improve profits for train operators, the simple option is to cut lines serving small and rural communities. The economics are much worse than serving large cities. Same for cell coverage and broadband internet. Most profitable is to just not cover a few percent of the population.
There is a point where technology becomes foundational for participating in society. And then it needs to be regulated to be available to everyone.