Earlier quoted context omitted.
The kernel is aware when files are modified.
That's not generally applicable, e.g. not if files are on an external drive, or worse, a network filesystem (where they can change even during use).
In which case falling back on a hash is fine.