Why not? The answer is found in an amazing process known as photosynthesis.
وَتَظْهَرُ حِكْمَةُ يَهْوَهَ أَيْضًا فِي تَنَوُّعِ ٱلْمَخْلُوقَاتِ ٱلَّتِي تَعِيشُ عَلَى كَوْكَبِنَا ٱلْمُثِيرِ لِلْعَجَبِ .‏