God created the earth to produce every thing Adam and then Eve — and then their issue, and then all of us — would need. In the beginning, the garden needed little tending, but — due to a rather fortunate fall — eventually Adam and Eve, as his helpmate, and their children and the issue of generations had to toil the earth to pull from the garden those things God intended to meet their needs.
Along the way, progress was made in the form of extensions of the garden bounds, the distribution of water and other nutrients, applications of healthful foods and herbs, techniques for every aspect of garden production. A community grew from a couple who worked hard as stewards, first out of penance and then, I think, out of love for the land provided to sustain them and for each other as they worked together. This is the story of how sustainability came to be.
To simplify: God created the Heavens and Earth. He designed a glorious garden and put in it everything needed to make that garden productive: plants, water, clean air, soil, enrichers (bugs, worms, life, decay), animals, and the Sun, the first and last fuel. And, finally, He made man and woman.