Dolphins which are in a glass enclosure and on a lead, can somehow glitch through the glass and find themselves on the other side. (see the screenshot)
The enclose is entirely in the same chunk. The glass wall is 3 blocks high above the water so dolphins cannot jump over it.