Question about 7805 power supplies

Thank you,

My assumption was that the capacitors were there to handle the ripple from rectified AC power. I had no idea how the 7805 worked so I learned something today.