There are many different immunities innate, adaptive, and passive
Explanation:
I don't know which immunity you are talking about so i will explain all of them
We develop adaptive immunity when we're exposed to diseases or when we're immunized against them with vaccines.
Innate immunity is when the skin acts as a barrier to block germs from entering the body. And the immune system recognizes when certain invaders are foreign and could be dangerous.
Passive immunity: Passive immunity is "borrowed" from another source and it lasts for a short time. For example, antibodies in a mother's breast milk give a baby temporary immunity to diseases the mother has been exposed to.