The origin of tectonic stress in the lithosphere