If I have a PSD containing more than roughly 75 smart objects, if I try to save a copy of the document as a PNG, it saves an uncompressed version of the image and ignores your PNG compression settings.
Photoshop since at least the 2021 CC version, Windows 10.