It was not clear which vaccine development projects would succeed and which would not. For a reasonably wealthy country, the cost of the vaccine doses is completely negligible compared to the cost of the pandemic. This is why it made sense to massively overpurchase doses.