Because the guards refused to let the prisoners to empty the bucket, so the sanitary conditions worsened?
Context:
Guards forced the prisoners to repeat their assigned numbers
[6] in order to reinforce the idea that this was their new identity. Guards soon used these prisoner counts to harass the prisoners, using physical punishment such as protracted exercise for errors in the prisoner count. Sanitary conditions declined rapidly, exacerbated by the guards' refusal to allow some prisoners to urinate or defecate anywhere but in
a bucket placed in their cell. As punishment, the guards would not let the prisoners empty
the sanitation bucket.
http://en.wikipedia.org/wiki/Mattress were a valued item in the prison, so the guards would punish prisoners by removing their mattresses, leaving them to sleep on concrete. Some prisoners were forced to be naked as a method of degradation. Several guards became increasingly cruel as the experiment continued; experimenters reported that approximately one-third of the guards exhibited genuine sadistic tendencies. Most of the guards were upset when the experiment concluded after only 6 days.