Genetic variations can cause the immune system to lack or have non-functional components, resulting in immune deficiencies. Conditions like severe combined immune deficiency and DiGeorge syndrome are examples of immune deficiencies caused by genetic variations.