We have a cat as a pet. This is probably their breeding season so is it justified in the eyes of Islam to neuter them? I suppose the doctors gives them anesthesia so they don’t feel pain while the operation is in progress.

It is not haraam but it is not correct either to cause suffering to animals. If you are unable to keep the pet, then it is best to let it free into a safe environment