Because plants cannot obtain their own food source, so they must create it using photosynthesis, and in order for that process to happen, it requires a green pigment called chlorophyll to absorb light photons and start up the process. So, leaves contain chloroplasts, which contain chlorophyll, which is green.