Why did samurai follow Zen?

I’d always assumed it was the discipline of meditation, standing under waterfalls etc that was the main appeal to the militaristic samurai, but this passage on its appeal to the totally unmilitaristic Chinese aristocrats suggests the often idle Tokugawa-era samurai might have had other reasons:

“during the prosperous period of Tang China, the spontaneous, aesthetic spirit of Chan Buddhism appealed to the elite, who had ample leisure time to pursue sudden enlightenment, not necessarily through the monk’s strict regimen of meditation, but through experiencing art and poetry, or merely communing with nature”

Buddhism A History by Noble Ross Reat pg 157