They tried, but weren't able to defeat them completely; a deal / armistice was made in the end.
> Finland lost 12% of its land area, 20% of its industrial capacity, its second largest city, Vyborg, and the ice-free port of Liinakhamari
https://en.wikipedia.org/wiki/Finland#World_War_II