Tea ceremony developed from the culture of the Samurai and the Japanese nobility and then developed its own aesthetic with influence from Zen, and was perfected by Sen Rikyu in the 16th century.
The practice of drinking tea was brought to Japan by a monk who had spent time in China, and the practice of tea ceremony as we know it developed over the ensuing 400 years.