Hamas is the (originally elected by the people) government of Gaza. Hezbollah is a partner of and inside Lebanon's government.
In addition, both parties are who Israel was nominally in a ceasefire with. So extremely relevant to the discussion about Israel and ceasefires and not random whataboutism.
You seem to be implying discussion should be waived away if a counter party is both a government and a terrorist organization.