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.