Much like how CEOs get wide discretion as to what "advancing shareholder interests" means - maybe it's in the long-term interest of public health to build a huge amount of real-estate holdings that you could (hypothetically) use to generate revenue and advance public health (uh huh) some time in the future. That's perfectly fine for a non-profit to do - they really are just a corporation that doesn't pay out profits to shareholders, they keep it all internally.
Examples: the Susan Komen foundation. College endowments. Hospitals. Etc.
In my time at a non-profit, we had what we called our "contribution margin" which was equivalent to profit in a for-profit company, and that was tens of millions of dollars a year. Like I said, we had big real-estate holdings etc which is where all the profit went year-over-year. And we actually did do important public health work, but we were also essentially a contractor for various state and federal agencies and definitely did turn a profit.
The only requirement in the US is that at least 5% of the activity must be charitable in nature - that's not a typo. So spend 5% on some studies and reports and the rest becomes your personal slush fund. It's a fantastic little arrangement.
https://www.ncfp.org/wp-content/uploads/2018/09/The-Five-Per...