Why is Prostitution Illegal?

Prostitution is illegal because it often encourages mistreating women and sex traffickers can take advantage of certain situations. However, it has been decriminalized in a lot of states and is very legal in Nevada.