It's certainly not ideal, but their only other choice at this point is to surrender to Russian occupation. The Russian military greatly outnumbers that of Ukraine, so without civilians joining the defense, they'd really have no chance. Of course these people are at high risk, but obviously they feel it's worth it to defend their freedom.