Because there's a better than a 50-50 chance that Obama will not fight.
Those aren’t good odds considering what is at stake. Attacking a NATO country would provoke a US response regardless of who is in the WH. Putin as a former KGB agent in East Germany is well aware of the risks.