Why do shotgunners wear gloves?

I see a lot of people in my area wear gloves when shooting their shotguns, and I don't quite understand why. Can anyone fill me on on why you would wear gloves for shooting shotguns but not for rifles? I'm pretty new to shotguns in general so I don't understand a lot of the nuance behind shooting them. Thanks in advance!