what is the purpose of brushes in an electric motor
The purpose of carbon brushes is to reduce wear on the commutator, compared with what metal brushes would do. In many cases, carbon brushes can be made long enough that they will not wear out while a device would otherwise be usable; when they do wear out, they can be readily replaced.