Apple has been supporting HFS for decades and it has grown old and crufty with a lot of features grafted on over the years. Prior to it being journaled it was notorious to have data corruption. Apple knew they had to do something for the future. At one point, Apple was considering switching to ZFS from Sun Microsystems, now Oracle. ZFS was another entirely new file system which was rather revolutionary and scalable to a Zetabyte system in large server environments. There was some limited support for ZFS added to Mac OS X by 3rd parties and Apple was deep into working ZFS into Mac OS Server on internal non-public builds. A business decision was made to create their own file system instead of adopting ZFS. There might have been some licensing concerns and some technical issues.
Most of the useful features found in ZFS such as copy-on-write, data integrity, snapshots, etc. were implemented in APFS. While ZFS is not terribly optimized for SSD storage APFS definitely is.
- Ability to save snapshots of the OS
- Optimization for flash storage improves file transfer speeds and device longevity
- Checksum values to file system metadata prevents and mitigates file corruption
- Space sharing makes all partitions dynamic instead of static, allowing them to grow and shrink on the fly
- Volume container encryption supports both single-key and multi-key encryption
- Sparse file support allocates storage only when the user needs it, allowing users to create logical volumes larger than the physical volume containing them
- Fast directory sizing quickly computes available space
Basically, APFS is a modern file system that takes care of all it's own maintenance so you do not have to worry about it. The operating system has built-in tools to repair APFS and Disk Utility runs the command line apfs_fsck repair tool. 3rd parties who write file system tools haven't really obtained the information necessary from Apple to build recovery tools that might go beyond Apple's built-in tools. They have to reverse engineer it for the most part. There are some data recovery 3rd parties but not many. Always backup any form of storage.