Why are the lubricants used in machines?

Lubricants are used in machines so as to reduce friction.