5894 means that the password appeared 5894 times in the dataset.

5894 is not the password associated with the hash.

Yes, it did mean what I thought, then.

But I guess some passwords appear far more often than that in the dataset.

Some passwords are far more commonly used than others; that isn't surprising.