Our body produces these antibodies while fighting an infection. This is how we develop immunity against the particular bacteria or virus after being infected with them or after getting the vaccination.