In liquids and gasses, this ability allows them to flow (they are fluids).
Viscosity is generated from the fact that these particles move, rub against each other or bump into one another.
These interactions between particles creates friction. The friction is what slows down the particles. We call this "internal friction."