Because during the reigns of David and Solomon, Tyre’s king was friendly toward Israel.
وَهُوَ يَتَوَسَّلُ فِي مَزْمُورِهِ أَنْ يَتَّخِذَ يَهْوَه إِجْرَاءً لِلْمُدَافَعَةِ عَنْ سُلْطَانِهِ وَجَعْلِ ٱسْمِهِ مَعْرُوفًا .‏