Buffers contain both one weak acid and its coupled weak base,
that can not react with each other (they are a so-called conjugated
system).
When you add strong acid it will react with the base part of
this buffer, when strong base (hydroxide) is added it will react
with the acid.