Here's an excellent Planet Money article I heard yesterday going over this issue: https://www.npr.org/2020/03/13/815307821/planet-money-why-th...
At least in the US, there's a policy of 'creating' a market for vaccines for these potential outbreaks in order to incentivize industry to research and produce them.