Breaking out in terms of skin condition can mean to have a case of acne, and breaking out in terms of prison means to escape or illegally exit. It's a pun where the inmates were given acne treatment that is typically used for skin acne prevention, but instead to prevent them from escaping prison.
The warden gave the inmates acne medicine hoping it would keep them from breaking out .