The reason Taras collapsed (or partly the reason) is because Phyrros died in Sparta. Without the charasmatic king to keep everything in working order, I imagine that Rome took their chance. I believe that in return for the city, Rome allowed the Epeiros garrison to return home.

Foot