Ukrainians after 2015 embarked on a modernisation reforms also did nato training alongside learning nato weapons.
More so it will take decades for Ukraine to be a nato standard army but as they prepared they learnt their lessons that Russia and its donbass proxies will invade in the future...