Initially the law allowed locking blades under 3 inches long.

But it was a court case that a prosecuting lawyer convinced a judge that effectively a locking blade is equivalent to a fixed blade. So that set the legal precedence.