You love your child and want to provide a good, stable home for them. As much as you want to help your child grow and succeed, addiction is a monster you just can't seem to escape. A judge decided you were "unfit" and denied guardianship or custody rights to protect your child, but this doesn't mean you can't earn them back.
Addiction, be it drugs, alcohol or gambling, can risk a child's well-being. This disease can pull parents away from spending quality time with children and may affect their ability to make good parenting decisions. It's possible that a grandparent or other family member could care for the child until you are healthy enough to parent again.