Probably from the same as 'agam (in the sense of stagnant water); figuratively, sad -- pond.
see HEBREW 'agam
H99. agem
[אָגֵם] adjective sad (compare Mishna) אַגְמֵינֶֿפֶשׁ Isaiah 19:10.