You generally need a lot of energy if you train hard and want to build muscle mass. This will require a balanced, mixed diet with energy-rich nutrients.
And proteins play a central role in this in addition to carbohydrates and fat. They supply the body with important amino acids and contribute to the growth of muscles. They also counteract catabolic processes (which reduce muscle mass) and hence influence regeneration after training.