Answer:
A buffer ensures you have a constant data rate even when your internet connection has hickups.
So your buffer sits on your computer and always has the next bits of video or audio available so your video or music keeps playing when the connection fails for a short while.