That's not true. Ukraine was well prepared, they had spent since 2014 on this because they knew the day would come. That's the only reason the country still exists.
I'm pretty sure Ukraine were taking the Russian preparations as what they were. And they had plans to counter them. Proven by the fact that Putin's 3 days war has now surpassed the Russian involvement in WWII.