This is an attack on Turkish territory regardless if there's a US base, and Iranian missiles usually miss the bases anyway.
Turkey is led by a strongman leader and these are very sensitive to acts of public humiliation. So that's unwise when thinking about any negligible strategic advantage they may gain from these attacks