Filesystem capacity has at least two limits: data blocks and metadata objects such as inodes. df reports allocation from the filesystem's perspective, while du walks reachable pathnames and sums usage attributed to them. The values answer different questions and need not match.
The Filesystem · Lesson 9
Disk Usage
Learn how `df` and `du` measure different views of filesystem block and inode consumption.