There has always been a small number of people who don't trust vaccines, but they were a tiny minority until a bogus study claimed to link autism with some vaccine preservatives. It was quickly debunked, but the anti-vaxxers latched onto it and got some unfortunate publicity, and that movement grew, though still a small minority.
With the COVID vaccines, add to that that there's some new technology behind it and naturally you get some people who are concerned about anything novel. It was also a rushed approval process. That said, it's been basically tested on like a billion people by now....
Then there are groups such as African-Americans who, based on history, may be understandably distrustful of a government that wants them to get a shot.
Finally, yes, there is the political angle, where republicans have decided to support a freedom to infect, and vaccines interfere with that, so....
The anti-mask thing, by contrast, is pure lunacy. Anyone who has seen medical personnel, real or fictional, in the last 50 years understands that wearing a mask is completely non-controversial, easy, and safe way to reduce the risk of spreading germs.
The only reason to object to masks is pro-COVID politics.
To be clear, get the shot, wear a mask. Try not to catch and spread a potentially lethal disease. Like, duh.