The WD in WD 40 stands for water displacer. meaning, it removes the water. It is not a lubricant or oil.
But, when you have just blasted a hundred rounds through a semi auto shooting clay birds and it starts to get sticky ejecting shells, a few shots of WD 40 will get her cycling again.