"When he died, in 2004, his books and exhibitions were too numerous to count, and his magazine work had been published all over the world in the best publications." [0]
The copyeditors seem to think that writing "When he died in 2004" would imply that he had died not only in 2004 but also in another year.
[0] https://www.newyorker.com/culture/photo-booth/when-in-berlin...
Most grammarians seem to approve the use of parenthesis or dashes that way, so I’m not sure why commas are the most popular.
And, again, to clarify AP a bit. AP doesn't say you can't use an Oxford comma but that you should only use it if the sentence could otherwise be misconstrued, e.g. the "We invited the strippers, JFK and Stalin" that Oxford comma fans like to cite.