There is no Shortage of Reasons
- Architecture/Hardware - The Wii U wasn't necessarily weak, but it had different strengths and weaknesses compared to even the PS360 duo. The way I understand it is that the Wii U was a step up in terms of GPU and RAM, but was fairly different from standard PC or Mobile (though this was largely irrelevant in 2012) architecture, with a fairly slow CPU. That's a major barrier to easy third party support.
- Branding - It was always unintuitive to casual audiences that the Wii U was more than just a peripheral, especially after 6 years of peripherals using the convention of "Wii Something."
- eShop - The Nintendo eShop was fairly weak on the Wii U, with clunky backwards compatibility with WiiWare and the Wii Virtual Console, the new Virtual Console coming months after launch and not delivering as many games as the Wii counterpart did despite better tech, and the Wii U's paltry storage conspiring against downloading larger games anyway.
- GamePad - The GamePad, a fairly chunky piece of tech, featured a 480p screen with 158 pixels per inch. For comparison, the iPad 3 came out in 2012, was similarly sized, had a larger screen, had 264 pixels per inch, and could work more than 10 meters from a Wii U console. It wasn't hard to make an unflattering comparison.
- Gimmick - The GamePad was a lot harder to sell as a gimmick than motion controls, especially since the controller itself was a lot less visually appealing in 2012 than the Wiimote was in 2006. There were eventually games that could sell the GamePad, most notably Super Mario Maker. But that came out way too late. Also didn't help that the console was limited to a single GamePad, conflicting with Nintendo's usual strength in local multiplayer.
- HD Leap - Nintendo has historically had trouble developing games after new major tech leaps, and the HD transition was no different. The Wii U had games taking longer to develop and being released less frequently.
- Launch Lineup - Although there were plenty of games at launch, good games at that, there was no game that made people want to go out and get a Wii U. Nintendo Land, though fun, was no Wii Sports, and New Super Mario Bros U was seemingly the same game you could play on any Nintendo platform.
- Marketing - This one is a bit hard to quantify, but I feel Wii U ads never really did a good job selling the console in question. The only exception I can think of is some of the Smash Bros for Wii U commercials selling 8 player Smash pretty well.
- MIA Franchises - The Wii U never had a main series Pokemon game, true successor to Wii Sports, Animal Crossing, Nintendogs, or Legend of Zelda (Breath of the Wild's dual release doesn't count). Other series like Kirby, Fire Emblem, and Metroid are understandable, but those are big franchises to skip out on.
- Price History - After the $50 pseudo-cut in 2013, the Wii U never became cheaper. These are rarer in recent years, but at one point you could get a PS4 for the same price as a Wii U.
I could find more reasons, but 10 is enough.