Poor countries are hit by covid-19 as well. Those folks deserve a vaccine too. Even if you don't care about the Humanitarian side of this, the west benefits from that directly by not having giant reservoirs for the virus.
Plus, they travel to the rich countries.New vaccines are coming in. China will probably use their own, India will copy one and costs next to nothing. Donations will make sure everyone has one.