Yes, the anal glands have nothing to do with neutering. Different area.
I think bringing him to the vet is a good idea. Sometimes anal glands can get impacted, but they are very painful. I think you would notice if it was something serious like that.
Did he just go to the groomer? Sometimes they get sore right after their glands are expressed.