Part of it's a punitive thing. Incarceration should not be wholly about punishment, but it shouldn't not be about it at all either. If you defraud thousands or millions of people out of millions or billions of dollars, you deserve to be separated from society for a while.