Sony is actually also wrong. The OK button is the circle on the right. The Cancel button is the X at the bottom. In western games we just have the buttons swapped over. What's on them no longer makes any sense, but we're happy as long as the main button is OK.
This probably goes back to Japanese being written right to left in the dim and distant past.
Well yk Nintendo was first with the x & y position, but Sega did x & y reversed to keep the alphabet order I assume (so a,b,c on the bottom and x,y,z on top row for the Sega Saturn controller) and then xbox copied the Dreamcast controller (i say copied but there might have been some sort of cooperation between the two ??). The rest is history.
Really it's annoying to switch between the different layouts for sure, but Nintendo has just kept to their standards set since they did the SNES
I don't even remember the last time I played Xbox, and I definitely spend majority of my time on Nintendo, but I still see Y as on top and A on bottom lol