Far more often than people assume. Nintendo publishes plenty of M-rated third-party titles on its own hardware, and a fair number of first-party games carry a Teen rating.
Examples include Super Smash Bros. Brawl, The Legend of Zelda: Twilight Princess, Fatal Frame, Bayonetta 2, Devil's Third, plus fighters such as Killer Instinct Gold and Fatalities-free entries in the Mortal Kombat family that landed on Nintendo systems.