Vaccines are funded in different ways, and the current crop of manufacturers is made up of profit and non-profit organizations. Most companies have received assistance in funding from governments. Moderna has received such funding from the US government, but once its obligation to the US is complete, Moderna’s vaccine is ultimately sold for profit.
Other vaccines, like Sputnik V and Oxford-AstraZeneca, are projects spearheaded by government institutions, or private companies not looking to profit from the pandemic. These vaccines are sold at a lower price, just enough to cover the cost of research, manufacture and distribution.