Seriously? I guess it's common sense among people living in the U.S, but as an international student I honestly didn't know it's legal to emulate a proprietary system.
You've used PCs? That entire ecosystem is built upon IBM-PC clones running a reverse engineered version of IBM's proprietary BIOS. Not quite emulation, but many of the same principles at work. Sony v Bleem! solidified the status of game console emulators, though Bleem! declared bankruptcy they won.
At the moment, there's a game compilation being sold on the Switch and other platforms called Disney Classic Games Collection. It contains emulators and ROMs stripped of the trademarks of their host systems, with the emulators created without the involvement of them too.
Nintendo can't do anything about third parties emulating their hardware without also threatening the legal status of software released by their partners, which include Disney, but that's just one example. Suffice to say that even if you argue that Yuzu/Ryujinx step over the line, the foundations for all this are fragile enough that no one wants to rock the boat.
I'm not from the US either. Is it illegal in your home country? I haven't heard of any country where it's illegal, so I'm surprised this is your default stance.
if we didn't have that, we wouldn't have wine or anything else that emulates ANY api and google wouldn't have been able to build dalvik for android. Potentially not even the free unices like freebsd or linux.