He knows it would be strategically impossible for the US or Nato to respond in kind to a nuclear attack on Ukraine. It can be rational for him to climb the escalation ladder if he knows his enemy will have to back down before he does because they have less to gain and more to lose.
I don’t like this situation at all, and I understand the point about rolling over to threats. Unfortunately, this is just how nuclear game theory works whether we like it or not. You can’t win in a conflict under MAD against an opponent who has more at stake than you.