If most components are behind armor on larger mechs, how much damage can knives really do? All the vulnerable stuff would be deep in the larger machine, right?
Maybe a rapier that can pierce into the real vital stuff would be useful.
I bet starship armor is much thicker, making knives too shallow.