It's a fun little inconsistency that Sonic's gloves can come off but his shoes stay put in Sonic Unleashed. There isn't an official in-universe explanation for it.
Some fans jokingly suggest it might just be the Sonic design team being a little modest about their blue hero. In reality, it's most likely a quirk of the character's animation and design rather than anything story-related.