A bird is a prison sentence.
For example, in 67's song Waps Came First (#WCF) on the hook Monkey says "Nuff time man risk mans life from young man, could of got bird" meaning that a lot of times he risked his (free) life because he could have got a prison sentence.