The cholera bactery evolves which means it changes the way it works. So if you are vaccinated, the bactery will evolve itself in such a way that your body doesn't reject it.
This is because a solid particles are so packed tightly together, they're fixed in their position and can't move past one another, unlike liquids particles.