Why is it important to prioritize high-risk groups for COVID-19 vaccination, and what factors should be considered while making such decisions?

The WHO has advised countries to consider vaccinating groups at highest risk of severe COVID-19. I want to explore the reasoning behind this approach and the ethical, logistical, and social factors involved in prioritizing certain groups over others.