Plant life is critical for the Earth, providing a source of energy for other lifeforms. This was all part of God’s plan during the creation week.
Genesis 1:11-13 And God said, Let the earth bring forth grass, the herb yielding seed, and the fruit tree yielding fruit after his kind, whose seed is in itself, upon the earth: and it was so. 12 And the earth brought forth grass, and herb yielding seed after his kind, and the tree yielding fruit, whose seed was in itself, after his kind: and God saw that it was good. 13 And the evening and the morning were the third day.
The verb “bring forth” means to sprout or shoot up. God did not create the plants out of nothing, but used material already created to cause them to come into being.
Note the differences between the reproductive mechanisms mentioned. The grass and herbs yield their seeds directly, but the “fruit tree” has fruit with a seed “in itself”.
Again, God speaks and it happens. He is all-powerful. This is difficult for us to understand because we are limited. God is not.
The familiar refrain “and the evening and the morning” is given again, indicating a normal 24-hour time period.