The bad feeling when sick is your immune system responding to the infection. You don't feel the infection at all. So you can get the same feeling with a vaccine, since it causes your immune system to react. Since the vaccine doesn't reproduce, the reaction to it tends to be milder. Some people feel it, some don't.