So do you have any concept for what the purpose of earth is and why it is perfect for it?
I don't know where people come up with this idea of perfectionism, that everything God creates must be perfect, and therefore there is no such thing as sin, etc.
'Sin' refers to 'missing the mark.' We don't know exactly what perfection is, because we are part and parcel of an imperfect world; but we have some ability to imagine ideals and strive for them, and then to reflect on what we have achieved and how it falls short of something better.
So you're asking what the purpose of Earth is and why it is 'perfect' for it, but the only good response I can give you to that is that Earth has developed and evolved throughout its long natural history in a way that has established certain forms of life and ecological patterns through which the various forms of life and energy restore and sustain themselves and each other.
So you have plants evolving to reflect sunlight so that they don't dry out, and then animals evolve to eat the plants and live in their shade so that they don't dry out either. Basically all water-based life has evolved to avoid drying up or otherwise dying in some way.
So life sustains itself in various ways, but there is also the capacity to sin against life and cause its destruction. And sin provokes further sin, such as when someone destroys your life and/or property, so you seek to retaliate and destroy theirs, etc.
But if you look at how the Earth has evolved and developed, there is this capacity for sustainable patterns of life, where producers/photosynthesizers evolve in tandem with consumers that feed off them. There's a lot more going on than producing and consuming food, though, so if you take an ecological perspective to seeing how all these life-forms sustain themselves and the broader ecological networks and biomes of the planet, then you should be able to see that everything is discovering and fulfilling its various purposes and functions for its own body systems and those of other organisms.
It's extremely complex, but surely you can at least see that there are mutually-supportive patterns of life going on, and then there are also patterns that are not mutually-supportive, which are gradually depleting future resources by propagating unsustainable practices.
You're asking about 'purpose,' but to even ask that question, you have to already begin fulfilling the part of your purpose as a sentient being of seeing the bigger picture of the Earth and all its life forms, including humans; and how we all function vis-a-vis each other in terms of harming and/or benefiting each other and ourselves in various ways that are either permanently sustainable or in some way leading to more problems at some future time.
You are judging the Bible negatively, but it is just a book that contains a lot of wisdom written down through the ages. If you seek wisdom in it, you will find more than you can even keep track of.