> Quite frankly, I don't know why filesystems don't provide these things.
They do. F2FS [1] does. There were attempts to add them to xfs/ext4 too, but they petered out, probably because of lack of interest.
[1] https://www.kernel.org/doc/html/latest/filesystems/f2fs.html