Nintendo or Hudson Soft most likely hired some guys with emulation experience to do the programming for them.
From what I've seen, the emulation works well. But, I still don't like the concept of re-buying games that I already own. I'll stick to Magic Engine on the PC, which is more convenient: I can use my own CDs and it supports almost every game flawlessly with superior filtering of graphics and sound.