Ukraine gave up their nukes and Western powers promised to protect them so they would. Both made bad decisions. If only ?Ukraine would have just kept their nukes - MAD works.
The nukes weren’t theirs, and they did not possess the means to use them.