Microscopic mechanism of room-temperature superconductivity in compressed LaH10