What we have here in the United States of America is the rule of law. We inherited this idea from the British, who first recognized it 800 years ago in the Magna Carta. The state can't just make it up as they go along, using muscle to enforce their whims. They are limited in what they can do by the law.
The practical effect of this lofty idea in traffic enforcement is that the LEO must identify a section of the vehicle code that was violated when writing a ticket. Because there is no section prohibiting lane splitting, they can't write a ticket for lane splitting. And even if there were a statute permitting it, they could still write tickets for speeding, reckless, etc., as they do now.