Because God have a tendency to get jealous if people worship anyone else than him. As he put it himself: "For I an a Jealous God".
This is in the older books of the Old testament. Before he stopped saying "I am the greatest" and started saying "I am the only one there is" instead (Somewhere round the time of Hezekiah.)