It was probably caused by the same thing that causes this in tomatoes. It was under watered, then over watered, which causes the fruit to fill up and burst like a water balloon. This article explains how it happens in tomatoes and since eggplants and tomatoes are very closely related, it is the same thing: https://www.gardeningknowhow.com/edible/vegetables/tomato/tomato-cracking.htm