If you do not have an old computer, you can of course use old operating systems on virtual machines using virtualization software such as VMware on your current computer. In case of such a need, it is recommended to run systems such as XP on desktop or laptop computers with old hardware.
However, since the automation machines used in some institutions or organizations were produced in an old date, they need Windows XP or an older operating system in order to be managed.