If you are looking for counter examples, take a look at Excel on windows. It undoes in multiple windows.
Say you have two documents open. You make a change in the first then change the second document then go back to the first and make a change. One document has two changes and the other has one.
First undo impacts document one. Second alters document two. Infuriating