There is no need of a complete unilateral agreement. CountryA benefits from free trade with CountryB even if the later imposes tariffs to some products of industries they want to 'protect'. It's CountryB which will not have as an optimized economy as it could.