The judge issued the punishment at their sole discretion. The legislature sets the laws often without any input from the constituency.
Meanwhile a sizable campaign has materialized around this case and many people do feel he has done enough time and should be free without any restrictions