Why did tom Robinson go to jail?

Tom Robinson initially went to jail for disorderly conduct. He couldn't afford to pay the court fine so he chose to do jail time instead.