Why is same-sex marriage ok but not polygamy or polyandry?

may be because it is bound to bring in a lot of hurt and confusion to everyone involved.