Usually this happens if you have accrued fines and other fees over $50. This results in a loss of borrowing privileges, and a block has been placed on your record.
Sanctions and blocks are not removed until accounts are paid, or a successful appeal of the fine is made using the Library Appeal Form.