Why is friction a necessary evil?

Why is friction a necessary evil ?

Frictional force causes a lot of losses in general upkeep and wear and tear of machinery. Hence it is considered as a evil. But almost all crucial tasks cannot be carried out without the presence of friction. Basic activities like walking and writing on a surface are possible due to friction. Hence it is considered as a necessary evil .