You find your hair suddenly becomes static due to two reasons: either lack of humidity in the hair or you rub something with your hair. The second one is a common case when we brush or put on a scarf or hat. Obviously, it causes friction with our hair so our hair becomes suddenly static.