Why it was originally done is not important, it is how they are used now.  "Temporary marriages" ARE used as a cover for prostitution.  See the example of  Qom, in article below:

 

http://www.slate.com/id/2189816/

 

It would seem that the rules vary depending on which strain if Islam one has chosen to follow and that they are widely tolerated.