Thick prison bars get in the way, so cages are designed with openings. The idea is that the hole - while often large - is not big enough for a shark to actually get in.