The connection is that the mean is the single estimate of a distribution that minimizes expected squared error while the median minimizes expected absolute error.
Tuning a fuel-powered vehicle requires learning to maintain optimum performance and fuel economy, and to minimize engine wear and overheating, even in ready-to-run vehicles.