This is the conventional view (from MedlinePlus):
"Surgery that involves a cut (incision) in the skin can lead to a wound infection after surgery. Most surgical wound infections show up within the first 30 days after surgery.
Surgical wound infections may have pus draining from them and can be red, painful or hot to touch. You might have a fever and feel sick.
Causes
Surgical wounds can become infected by:
Some Risk Factors, but no other causes were listed, only germs. However, there is an alternative theory that deserves critical scrutiny, especially with the present antibiotic crisis, namely:
The prime cause is a failure to heal any of the usual fluid leaks that occur with surgery. The prime example of this is in the middle ear where fistulas through bone are hard to seal, resulting in persistent attempts to do so, leading to cholesteatomas. In orthopedic surgery, the most likely causes of persistent fistulae are bone fragments in the wrong place. Germs will only be a secondary problem if pools of fluid form instead of draining away, or if these occur in parts of the body outside the influence of the immune system,