I guess it has been a while since gamers have seen a console (from a major developer) flop. But, this has happened several times. When it does, the companies involved do what they can to make the most of their investments. Sometimes that means replacing the console after just a few years. Other times it means rebooting the games developed for it. Since these things have happened before (and with Nintendo, no less), anyone that buys a console should be aware of these risks.
Nintendo is a for profit company. They have a fiduciary duty to their shareholders to make money. They have valuable assets that they must monetize, in the form of Wii U games that did not reach all of the gamers that may wish to purchase them. They'd be irresponsible not to make them available on Switch.