Moderna has been using their vaccine out of the hands of poor countries in order to make more money.
Did anyone expect differently?
Moderna is not a big-time pharma company - prior to the covid vaccine, they were a research shop developing the mRNA technology. The covid vaccine is their first, and still only, commercial product, and its revenue will dry up when the pandemic recedes. They have an opportunity at a year or two of windfall*, and will try to maximize that opportunity.
*In this case, windfall on the order of 6000% increase in revenue year-over year. They were not a billion-dollar revenue company before the vaccine.