Why is mutah allowed because allowing 1 hour of marriage with another person kind of removes the real meaning of a marriage and also sleeping with multiple people can cause stds

You have misunderstood the meaning and concept of Mut'a marriage in Islam. Please go through the link for the more details please.
https://www.al-islam.org/media/muta-temporary-marriage