However, you're right that most people at these companies are so accustomed to the "free money faucet" from ads, huge margins, etc. that it's incredibly easy to end up totally disconnected from reality. That's probably what frustrates you the most.
I will say - after having left Google just about a year ago now - that there is literally no better time to make money in tech than right now. AI is eroding the moat of all large tech companies, and skilled individuals with passion and drive can make a huge impact on the world with an incredibly small budget.
You'll make it. All of us will.
That's not say leaders here and there aren't thinking about what they're building and the macro effects, but you have to understand that unless you're bootstrapped and self-funded, even the most morally minded CEO is still beholden to investors who primarily care about money. You can only be as ethical as your board allows, and that primarily comes from profitability and financial success. In the good times its easy to talk a big game (eg. Google's "Don't be Evil"), but eventually competition comes for us all, and if your morality is hurting the bottom line you will be replaced. The backstop would be customer sentiment, but most buyers (whether B2B or B2C) are also not morally motivated. That's why free + ads is the dominant model, why micro payments failed despite years of techie hand-wringing, and paid consumer apps outside of streaming are vanishingly rare.
It's not all hopeless though. If things reach a high enough threshold of public sentiment then we can put legal and cultural pressure that will actually change things top-down. I think this is where AI is probably going as it's the most universally feared and hated impact across party lines that I have seen during my life, and the leaders in charge seem incredibly tone deaf about how it's being perceived, so I do expect regulation and softer forms of social enforcement to affect that trajectory. But if you're hoping for individual CEOs and leaders to fix our systemic problems, don't hold you're breath, they are just as replaceable as the workers under them.
Personal integrity is something you control for yourself. Nobody "allows" you to have it. If we still taught this and more people lived by it, we'd have a lot fewer problems.
Politically addressing needs has the same issue as regulating money, its unpopular either because of billionaire marketing or general ignorance and cognitive dissonance. Also resource allocation is hard when people interpret any level of cut as murder. So you're hemmed in on both sides while FPTP makes it impossible to be honest with the electorate where jetpacks for everyone and free head is what wins you elections, regardless of its delivery.
While some commenters might suggest socialism is the panacea, I think that's just a different format of the same sort of failure. The fundamental flaw in our societies is ourselves, as we build societies that reflect our own failures. We care for ourselves considerably more than we do others, sometimes aggressively against others, sometimes will utter, wilful ignorance of others. The big picture is too hard for our brains to deal with. We have no baseline emotional regulation, humans can wrap themselves into the same emotional state about leaving Britney alone as they do about the death of a loved one. This means everyone's needs seem the same, which makes resource allocation hard.
We see a similar whine about immigration where the abstract is simply: You get $10k and an immigrant moves next door, or you get $0k and an arbitrary person who isn't an immigrant moves in next door. Solve for the status quo. But people will elect governments on a policy of cruelty to think that status quo won't immediately rubber band back.