Yeah either something else is involved here or Israel is indeed selling Pegasus to literally any government that requests it. Let's not forget that NSO group is state funded so those deals clearly do have the approval from the Israeli government.
NSO denies any wrongdoing. It says the software is intended for use against criminals and terrorists and is made available only to military, law enforcement and intelligence agencies from countries with good human rights records
One of the key reasons for Israel's reluctance to help Ukraine win the war militarily is simple: It still works closely with Russia.
Russia is important for Israel's military operations in neighboring Syria, where Israel has been carrying out airstrikes against Iran-backed militias, mainly those of Hezbollah.