They’re literally getting invaded by Russia in a defensive war for the very existence of their country. That’s not “for the west”.
Regardless, whether you look at it as a moral duty to the Ukrainian people, or as a self interested opportunity to protect Europe and weaken Russia, funding Ukraine is an efficient investment.