Why would one participate in a marijuana rehab?

Someone would participate in a marijuana rehab program if they felt that they were addicted to marijuana or if they were arrested for a drug offense and needed to go to avoid jail time.