We knew Troy existed long before that because it remained as a city at least into the 3rd century CE. We just didn't know which ruins it was.
The Exodus narrative explicitly describes the early Israelites flocking to worship idols like that.
> Jeremiah, weeping and sighing: yes I know
(That's a tweet that pops up from time to time when exchanges like this happen.)
> the historical evidence suggests that it was part of the main religion of these people for a long time
I mean...yes, this is thoroughly documented throughout all of Judges/Kings/Chronicles/etc. Elijah is the one who stands against 450 prophets of Baal, and when he feels totally alone later on, God tells him that 7,000 haven't bent the knee - big enough to be reassuring, but certainly not a huge percentage of the northern kingdom's population.
I think it's quite extraordinary how little the scholarly and historical consensus on these narratives has penetrated mainstream culture, even among a secular audience, so I like to bring it up whenever it is mentioned.