Nintendo is super trigger happy when it comes to suing modders and homebrew. But at the same time they are extremely friendly towards the indie developers that they work with.
So they hate people publicly distributing an open source switch SDK, but they'll happily give it to you (including full source) after you sign their NDA.