Even though this seems like nat bar nat, which is permitted, Rashi explained that in cutting an onion the absorption is greater, because of the pressure of the knife, and it is like a prohibition in kind. As the Aruch HaShulchan wrote, they did not decree not to cut a sharp food with a meat knife.