How does friction affect the mechanical advantage of a machine?

It lowers it