First you have confused uncertainty with a bad scenario. For all you know the offer from the first company would end up much higher than from the second but you won't know.
Second, and this is probably a bigger deal - lack of exact range often indicates flexibility in seniority, skillset and scope. So in your case, your only good scenario is if you match exactly the picture of an employee company 2 has in mind for the role/comp. If you are just a little under, you won't make the cut. If you are any over, they will underpay you.
Comoany 2 gave themselves more flexibility with hiring and paying you. Eg if you aren't quite on the level they thought, they could level you down as a say in, which you would appreciate. Similarly if you are beyond what they expected they may offer you more than you'd think, and more than company 2.
Mainly, you have cut yourself off from valuable information and potentially leverageable competing offers because you couldn't hang with a bit of uncertainty.