The Sages forbade bread that a non-Jew baked, even if everything was done in a kosher way, because they were concerned that hearts would be drawn and thoughts would draw close, and they would come to intermarriage. As the Rambam wrote, they decreed this so that Israel would not mix with the nations and come to intermarriage.