There is no single official explanation for why Sonic characters wear gloves. It is generally treated as a character design choice that makes hands easier to see and animate.