There's a simple reason. Seetha's adamance.
Seetha wanted Ram to free her. Not only she refused to go with Hanuman but also said him to act in such a way that Ragahava would earn glory in the upcoming conflict.
Although you are yourself capable of accomplishing this task of rescuing me single-handedly, O destroyer of hostile warriors, the attainment of success will redound to your glory rather than to that of Rama. (11)
If Rama, a scion of Kakutstha and the scourge of hostile forces, takes me back from Lanka after overrunning it with his forces, that alone would be worthy of him. (12)
Therefore, act in such a way that the exalted soul, valiant in combat, may exhibit prowess worthy of him. (13)
Hearing Sita's aforesaid speech, which was full of significance, polite and logical, the heroic Hanuman made the following reply: (14)
"O Devi, Sugriva, the lord of the monkey and bear armies, the foremost among monkeys, richly endowed with strength and determination, has resolved to act for your sake..." (15)
This fact is Also mentioned in ramopakhyana section in Mahabharat .
But if I had slain Ravana--that thorn of the worlds--the glory of Raghu's son would have been obscured;--and for this it is that I left him alone. By slaying that lord of the Rakshasas together with his followers, and bringing back Sita unto his own city, that hero hath established his fame among men.
If Hanuman wished, the war would've been over way sooner.