Christmas markets began as medieval winter fairs where people stocked up for the cold, and grew into a December ritual that now draws hundreds of millions of visitors a year.