That code is a mish-mash of a real safety thing (we don't regulate extension cords at all, so we try to make sure there are outlets everywhere and you don't need them... especially around water, like a sink!) and a general effort to make sure that if you buy a house, you don't figure out later that it's a piece of shit. My favorite examples are minimum length of extra wire in a box, and a neutral required. I don't think those have to do with safety at all, but holy crap am I glad they exist, as someone who didn't build their own house, or have my inspector take the covers off every box before we bought our current house.
Now, when you sell your house, is the next person gonna be a bit miffed that there are no outlets in the kitchen anywhere near the sink? What about when they go to install a smart outlet and there's no neutral, and 1cm of hot wire to work with? That's gonna suck too, but you didn't permit anything and went off your gut so... fuck them I guess?