Its body had begun to change so it could function on land. But it didn't adapt in time and went extinct.