What are the causes of eye redness and pain post retinal detachment surgery?

My father has been having eye pain after surgery. Why?