Because NATO article 5 demands it.
European support started out slow, but has ramped up as the US has backed away.
Germany will spend 20% of it's federal budget on military in 2027, planning to increase that to 30% by 2030. "We cannot defend ourselves against Putin with a balanced budget".
Ukraine is not a NATO member
What does NATO article 5 have to do with Ukraine?