So the answer to why anything happened in the UK, including holding a referendum, is basically just: because Parliament decided to.
Parliament votes to have them
> We don't have such a thing in the US.
Well, Congress doesn't choose to have them (separation of powers helps here; the Brexit referendum was very much about electoral strategy in a system where voting for a district legislator is also voting for a particular executive administration.)
> Certain states do, but not the country.
What many US states regularly have is binding referenda with Constitutional force and process; while these may sometimes be of legislative origin, they could do Brexit-style referenda (because of their general powers) but, again, separation of powers kind of eliminates the political use of them, or at least that of Brexit specifically, and a non-binding referenda on a non-profit proposal isn't something that makes a lot of sense outside of very particular political circumstances.
The one they had in UK was a non-binding one, which can usually only be brought to a vote by the parliament.