He took his own life.
There is no doubt the government put him in an uncomfortable position, but his story is a gross and tragic outlier. It's hard to draw any patterned conclusions from it, especially because we'll never know how the case would have worked out had Swartz not exited the judicial process.