I think its because we're not exactly immune to all the diseases, it's called the immune system because the cells defend the body from bad bacteria and it teaches your body to learn to fight against the bacteria from a virus/disease until the body is immune.