When the handle of the tuning fork is held against the table, the vibrations of the tines are transmitted to the table. The table then acts as a sounding board, amplifying the vibrations and making the sound louder.
In addition, the table provides a larger surface area for the vibrations to spread out, which also helps to make the sound louder.
Finally, the table reflects the sound waves back towards the listener, which also contributes to the increase in loudness.