The idea that women were judged and treated this way is appalling, and deserve to be highlighted.
It also is true that the Magdalene institutions were not exclusively catholic in origin - but all such institutions grew out of the evangelical religious movements of that time in history.
A piece from wiki
"Magdalene asylums grew out of the Evangelical rescue movement in the United Kingdom during the 19th century, whose formal goal was to rehabilitate prostitutes. In Ireland, the institutions were named for St. Mary Magdalene.[3]
The Magdalene movement in Ireland was appropriated by the Catholic Church following Catholic Emancipation in 1829 and the homes, which were initially intended to be short-term refuges, increasingly turned into long-term institutions. Penitents were required to work, primarily in laundries, since the facilities were self-supporting and were not funded by either the State or the Religious denominations.
As the Magdalene movement became increasingly distant from the original idea of the Rescue Movement (finding alternative work for prostitutes who could not find regular employment because of their background), the asylums became increasingly prison-like. Supervising nuns were instructed to encourage the women into penance, rather than merely berating them and blocking their escape attempts."
http://en.wikipedia.org/wiki/Magdalene_asylum
At least one commentator has suggested that the invention and mass use of a domestic washing machines had as much to do with the closure of these magdelene laundries as any change in the culture or the law - implying that the only reason they finally came to an end was that they simply became unprofitable.
Religion does not get a free pass here. Many of those who were referred to such institutions were described as "fallen women" - and that moral definition was very much influenced by the prevailing religious organisations of the time....