So yesterday, I found this wild tree frog in a corner inside my house, i thought it was dead but turns out it was alive with a huge chunk of its skin missing and its organs showing. Not knowing how to put it out of its misery, I just took it to a nice bush outside hoping it would die in peace.

Turns out its got more life than i expected in it, and it somehow managed to come back to my house where its hanging out on the door, in even worse condition.

It almost looks like the skin just cracked off of its body. Is this some genetic defect or an accident? I'm tempted to take care of it since it came back, but I have no idea how or if theres even a point.