APNG would be for lossless compression, and probably especially for animations without a constant frame rate. Similar to the original GIF format, with APNG you explicitly specify the duration of each individual frame, and you can also explicitly specify looping. This isn’t for video, it’s more for Flash-style animations, animated logos/icons [0], or UI screen recordings.
[0] like for example these old Windows animations: https://www.randomnoun.com/wp/2013/10/27/windows-shell32-ani...
All valid points, however AV1 also supports lossless compression and is almost certainly going to win the file size competition against APNG every time.
https://trac.ffmpeg.org/wiki/Encode/AV1#Losslessencoding