The physical foundations of geometric mechanics