In the verse, the plurality of deities is a hypothetical antecedent, not a statement that it occurred.

The Dialectical Method and Elegant Causal Attribution: Proof and Four Modes of Ḥusn al-Taʿlīl