Some areas of space have a more matter than others e.g. galactic clusters, where the relative speed of the galaxies to each other is higher than the expansion. This video from the excellent Space Time series helps explain it: https://youtu.be/bUHZ2k9DYHY