If the numbers in these threads are correct (CEO compensation at $2.5m/year, 250 employees laid off) then the entirety of executive compensation would only cover $10k/year of each laid off worker's compensation.
The point is not so much that the CEO's pay directly matches the salaries of the sacked employees, more that the CEO is clearly focused on their personal goals, rather than the organisational goals.
CEO's who reduce their salary in order to keep more staff on in lean times are servants of their organisation. CEO's who sack staff to save money so they can increase their own salary see the organisation as their servant.
It's not a crime to be greedy, but being greedy is a clear signal of your values and goals.
They couldn't keep on all the developers they fired, but they could keep some of them. On top of that, the optics of the situation aren't good for the company brand. Increasing executive pay while firing productive workers, particularly at a non-profit, seems generally frowned upon.