Why does a buffer work best at the pH closest to its pKa?
A buffer works best when there is the same amount of weak acid/base and its conjugate. If you look at the Henderson Hasselbalch equation, and set the concentration of the weak acid/base equal to each other, $\mathrm{pH} = \mathrm{p}K_\mathrm{a}$.