We all like to make candy and sugar the culprit for unhealthy teeth, but the reality is cavities are caused by bacteria like Streptococcus mutans and Streptococcus sobrinus that cling to the teeth. This bacteria creates an acid by-product that ultimately destroys your tooth enamel.
The gross thing about it all is just like a cold or the flu can be shared from one person to the next, so can this cavity-creating bacteria. Sharing food, drinking off of someone and kissing are the most common ways to swap this bacteria.