Adultery is committed by two people,hence the Lord God condemned both to death.

Deuteronomy 22:22
If a man is found lying with another man’s wife, both the man who slept with her and the woman must die. You must purge the evil from Israel.