PNG is lossless, with real transparency
PNG compression throws nothing away: decode and re-encode a PNG a hundred times and the pixels are identical. It also supports a full alpha channel, so edges can be genuinely semi-transparent rather than matted onto one background colour. Those two properties are why PNG is the default for screenshots, UI assets, and logos.

