In order to understand how such numbers could find room, we must remember that the ancient temples had vast courts around them, which could contain many thousands.
Related Commentaries of 2 Kings 10:21
2 Kings 10:21
21 And Jehu sent through all Israel: and all the worshippers of Baal came, so that there was not a man left that came not. And they came into the house of Baal; and the house of Baal was fullg from one end to another.