If there is a profit motive in it for them, bad companies can do good things. In this case, coming up with a COVID vaccine that worked and worked well was a big profit motive. And something anti-vaxxers don’t seem to realize: Moderna et al make a lot more money from a working COVID vaccine than a non-working COVID vaccine. People will eventually figure out the latter doesn’t work and stop using it.