You’re missing the point. He’s not trying to get released. He also has not committed a crime.
No, he’s trying to go somewhere he can sneak away from to infect more people, like AIDS patients who want to “bareback”.
So are you. The government doesn't put people in jail just for having TB. Obviously, this guy was jailed because he wouldn't stay away from the public so as to avoid infecting others.
If you want to take responsibility for him off the hands of the government, feel free to make that offer. But he can't be trusted on his own to not expose others to his disease.