XP Pro was a great OS, and is maybe a tie with Win-7 Pro. Anything from Win-8 on, is pure poison and stupidity.
EXCEPT — XP has quite a few known exploits that can be targeted by many bots, hackers and probes.
The whole Windows Kernel was rewritten in Windows Vista (5.0) to specifically close them.
As the years went by, exploits were found in the 5.X kernel, and Windows 10 is kernel 10., as is Windows 11.
The cybersecurity profile of every operating system gets pored over by experts and bad guys every day. The longer in production, the more likely a unpatchable hole is found.
Microsoft stopped providing any patches for XP LONG ago, and & a few years ago. The same will happen to Windows 10 next year.
Using them when connected to the Internet is risky.