> Why hasn't Apple rewritten libtiff, libpng, libjpeg, libwebp, et c in Swift?
Because they're shared libraries which other programs have linked to.
Additionally they've had decades of work and rewriting them increases chance that it will break something.