WD-40 does a lot of things, unfortunately this means that it does not do any one thing well.
As a lubricant WD-40 is very thin and runny. WD-40 will lubricate for a short time, but will quickly run off. This is a side effect from it being a penetrant. If it was thicker for better lubrication it would not penetrate well.