Community service, pays back the community, hopefully break-even cost in terms of administration and enforcement to labor productivity gained, at least won't be as bad as a prison sentence. At best can be a form of rehabilitation.
Probably just a gimmick. Court costs and overhead time checking the crooks doing mandatory good deeds might be more. But then we have to punish them somewhow