I don't think Nintendo ever stopped creating content for their consoles.
Sony and Microsoft are hardware companies that invest in software to help sell their hardware. Sony was trying to help Nintendo with software and after getting stabbed in the back decided to go out on their own. Microsoft saw how big the segment was and wanted to get in on it.
It's a software company that sometimes makes hardware, which is also evident with xbox in their attempts to consolidate their os.