While emulators exist, nothing beats running classic PC games on native hardware or a near-native virtual machine. Many games from the early 2000s have compatibility issues on modern Windows, making XP the perfect time capsule for gamers.
This is the most complex part of the question. Microsoft no longer sells Windows XP licenses. However, Microsoft does not actively pursue home users downloading XP for legacy purposes, provided they own a valid product key.