system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5:Why I can't undergone surgery in complete anesthesia when I have some (even little) infection?

I have chronic bacterial prostatitis and need knee surgery, but I have read on the internet that you can't be anasthesied if you have some kind of infection in your body. So, my question is why?

edit: Thanks for explanation guys!
gpt
You can have anesthesia with an infection. Otherwise nobody could ever have their appendix removed under anesthesia. 

What's more likely, since this is elective surgery unrelated to infection, is that they don't want to do surgery with an active infection because it raises the risk of post-surgery complications.