Nobody ‘needs’ to consume whey protein to gain muscle. It is a simple matter of convenience, accesibility, and a high quality protein source. The most determining factors for gaining muscle are going to be your training stimulus, adequate nutritional intake, and recovery. You can nail all three without using a whey protein supplement.