For one, JSON didn't exist 15 years ago.
For another, JSON didn't have validation or schemas 5 years ago.
For another, JSON didn't have validation or schemas 5 years ago.
As I usually say, JSON is for relatively free-form, dynamically typed languages, but if one side is uses a statically typed language, XML is probably the better choice.
So, JSON did exist 15 years ago, but not 16 years ago, although you have to go back 20 years if you want your statement to not just be about the name.
And yet ... how many of the decisions to use XML go back those 15 years? Hardly any.