No actually, it has to do with the Fifth Amendment. I'll be happy to withdraw the question if you can explain why Commerce Clause legislation must comply with the Fifth Amendment, but not the Second.
Key question: Who says it didn't? AFAIK, the 1994 federal AWB wasn't challenged on second amendment grounds.