It is well known that spacetime metric is connected with the Dirac algebra. However, the question of the connection of space-time curve metric with algebra has not yet received wide coverage.
If you are curious about the origin of the pseudo-Riemannian metric, then look to the chapter "On some applications of vector field algebra" of the book "Mathematical Notes...", where it is argued that the reason for the curvature of space-time is the curvature of the vacuum vector field of accelerations of particles of matter moving along the surface of a 7-dimensional sphere and perceived as a local algebra of vector fields.
Research Proposal MATHEMATICAL NOTES ON THE NATURE OF THINGS