Flower coloration is intended to attract pollinators. It looks to me like the anther cap and pollinia are missing, so the flower's job is done, whether it was pollinated or not. Hence the return to green coloration, making it no longer attractive to pollinators.