It usually happens when the gall bladder that’s attached to the liver breaks, and some of the liquid ends up on the liver making it green.