Grooming a dog before it is bathed is important because it frees up and removes dead undercoat and matting, while allowing the proper penetration of water and shampoo to the skin.
This can be done by using a slicker brush all over its body, especially on its legs, and the places where knotting occurs frequently.