Did you even read Kennedy’s dissent? If what you say is true, then Kennedy was going to uphold the mandate on the basis of the Commerce Clause, but then, he switches with Roberts and suddenly does a 180 to argue in favor of striking the *entire* (not just the mandate) law. Sure.
Since the law had no severability clause striking the whole would be pretty much automatic.