There is any logical theory to why life exist?
old.reddit.com
old.reddit.com
- https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7712552/
So it could be that life is a side effect of the second law of thermodynamics - life's "purpose" is to find new and better ways to consume the energy gradient. All the various forms and behaviors we see in the natural world are naturally-selected random variations on strategies to capture solar energy.
A more interesting question is: "Why do people spend so much time thinking about no-practical-use-whatever* 'why' questions?"
*Yes, it is useful if you happen to be a professional paleobiologist or planetary scientist, or a journalist trying to get clicks.