Why is the inverter need in this ALU?
Inversion of an input is used in some operations, including but not limited to subtraction, XNOR, and of course inversion. It can also simplify some operations when used as an input of an AND or OR gate.