Katniss's decision to save Gale is multi-layered:
Deep shared history; saving him repays loyalty and preserves her last link to pre-war life. Post-war guilt over mass death fuels a need to save someone she loves.
Terrified of loneliness after losing so many. Saving Gale staves off emotional isolation. Also reclaims agency in a war that stripped her autonomy.
Mix of love, friendship, reliance. Saving him confronts those feelings amid her conflicted dynamic with Peeta.
Suzanne Collins wrote it to highlight impossible wartime choices—loyalty vs. survival, love vs. duty. It underscores the series' themes: connection endures amid devastation.
No single reason; it's a convergence of guilt, fear, love, and thematic purpose.