Why does it matter? They were consenting adults exploring their sexuality.
Yes, it's risky because of infections even they knew the other couple well but they enjoyed it. The key was not to make it emotional but just sexual. Otherwise, it could cause serious relationship issues.