Their orbits were perturbed by other planets, bringing Theia out of its trojan position and causing the collision.
The gravitational forces exerted by other planets caused a disturbance in their orbits, removing Theia from its stable equilibrium position and ultimately resulting in the collision.