What is the reason for green stool after recovering from pneumonia in a child?

https://www.icliniq.com/qa/green-stools/what-is-the-reason-for-green-stool-after-recovering-from-pneumonia-in-a-child

Baby is getting green stool after two weeks of pneumonia. Why is it happening?