Private prisons might not be the sexiest industry, but when you can provide space for inmates at a fraction of the price of the government, you have a good business. Corrections Corporation of America (CXW 0.20%) is in the business of private prison operations in the United States. With 65 correctional facilities around the country, and 91,000 beds, Corrections Corp. of America, or CCA, has grown over the last 30 years to become and maintain its position as the industry leader.

CCA has done well in their 30-year history, and saw large gains from mega contracts during a time when the United States was locking up an unprecedented amount of people. However, now the market, as well as the company's inmate management success rates, are shrinking. Here are the main reasons I bought CCA in the first place, and the reasons I recently sold all of them.

Why Corrections Corp. was attractive
The company sounds like a low-cost alternative to federal prisons. Offering the option to outsource inmate housing and management was attractive to the government when CCA could house them for at a cost of $59 per day, compared to as much as $154 per day it costs the government to house inmates in more expensive states, such as New York. CCA reported an operating margin of $17.53 per inmate in 2012. 

Over the last few decades, inmate populations have exploded in the United States. The U.S. holds 25% of the world's prison population, but only 5% of the world's people. From fewer than 300,000 inmates in 1972, the jail population grew to 1 million by 1990 and to 1.6 million by the year 2010. Now, roughly one in every 107 American adults is behind bars, a rate nearly five times that of Britain, seven times that of France and 24 times that of India.

In states with vastly overcrowded prison systems, such as California, which at one point was at 125% of inmate capacity, an offer of help from a company like CCA was very welcome. Because of that, private prisons held nearly 10% of all inmates in 2010.

The stock itself offers a great dividend yield of 5.7% yield, and a modest P/E multiple of only 12.6; it was a good play for an income stock with seeming stability and plenty of industry growth to point to.

The only true competitor in the space is The GEO Group (GEO -1.35%), which has as market cap of $2.39 billion, compared to that of CXW at $3.89 billion. Similar to CCA, GEO group also grew from a vastly increaing market, Now, the company faces the same market declines as CCA.

Why the stock, and the industry, is now heading for a long-term decline
The prison population in the United States has finally reversed its growth trend, and populations fell by 1.7% in 2012.  In New York City alone, incarceration rates have declined 32% since 2001. Other cities will likely be following. Attorney General Eric Holder, the country's top law enforcement official, said that "[too] many Americans go to too many prisons for far too long, and for no truly good law enforcement reason." With political actions toward legalizing marijuana, relaxing strict immigration laws, and relaxing judicial punishment for non-violent crimes, this trend will likely continue during the foreseeable future.

The rate of incarcerated American's is finally going down. Source: Bureau of Justice Statistics

The political environment is changing, with activists and officials alike seeking to decrease the federal and public burden of detaining such a large population of people that probably don't need to be locked up, as opposed to other forms of punishment, such as fines and public service. CCA has tried to stop this trend. According to ProPublica, CCA has donated $1.9 million in political contributions from 2003 to 2012 to favorable candidates, and has spent an astounding $17.4 million on lobbying during that time.  Unfortunately for the private prison company, the money doesn't seem to be flowing as strongly as before because the trend is reversing. 

Additionally, Corrections Corp. has been the recipient of some bad attention lately concerning their management of inmates. The company was recently under suit from prisoners and families of prisoners after issues involving inmate violence in facilities in Idaho. This is only the most recent in a series of such issues.

According to reports, 132 inmate-on-inmate assaults were recorded at the Idaho facility during the one-year period of Sept. 2007-Sept. 2008 alone. Compare that to the 42 recorded at the equally sized state-run facility during the same time frame. These rises in assaults have been blamed on poor management and lack of security personnel due to cost cutting.

Final Foolish thoughts
The prison industry is still incredibly large, and companies in this space are still going to continue seeing revenues in the short term. However, taking on a long-term view of the market, the trend shows that the it is shrinking, not growing, and that the time of mass lock-ups is a thing of the past. Additionally, Corrections Corp.'s own inmate management issues add a level of legal and political risk to this stock that detract from the it's otherwise attractive yield. If you still wish to put your money in the private prison industry, the GEO group may be a better play with less legal risk. Zacks analysts agree, rating CCA a No. 5 (strong sell) and GEO group a No. 1 (strong buy). Still, consider the market forces at work in an environment of more lenient punishment and incarceration in the United States.