Emulation and virtualisation is a pretty standard, official, way of running software on other devices, where the software licence also doesn't stop anyone from doing so.
Emulating also isn't illegal by itself of a direct link to pirating, it is just a very common way of playing pirated games.