My 7 speed cassette began to develop a knock only when using the 5th gear and cruising around 24km/h. Had me puzzled for awhile what was causing the knock until I found the cluster was quite sloppy. Removed the thin shim and refitted the bearing cone and no more knock.
So there's a possible thing that can happen if the cassette is too free.
Cheers Ray