Depending on the telling, Poseidon/Neptune had sex with her in a temple dedicated to Athena/Minerva, and the latter transformed her as punishment. Then she may have just been chilling until Perseus came along to behead her for an unrelated situation.
That's not really how these stories went, at least for the ones involving mortals. The gods used favored mortals or demigod children as proxies instead. So maybe you could interpret Athena turning one of Poseidon's lovers into a hideous creature as her way of punishing him.
Depending on the telling, Poseidon/Neptune had sex with her in a temple dedicated to Athena/Minerva, and the latter transformed her as punishment. Then she may have just been chilling until Perseus came along to behead her for an unrelated situation.
Did Athena punish Poseidon in any way?
That's not really how these stories went, at least for the ones involving mortals. The gods used favored mortals or demigod children as proxies instead. So maybe you could interpret Athena turning one of Poseidon's lovers into a hideous creature as her way of punishing him.