It's too hard to raise money for a new startup in Chicago. This leads to fewer startups being funded, which leads to fewer startups, which makes it riskier to join a startup that could go belly up and leave you unemployed for a few months.
In the Bay Area, if you're an engineer and your startup tanks, you can have 5 job offers in a week from other startups. If those tank, you can get 5 more offers, and so on, until something "pops". That's not how it works in Chicago, so there's real risk to joining a startup there.
The reason this works in SF is because there's just a lot more money there going into startups.
A lot of the Chicago startup booster events I've attended in recent years were based on the assertion that the city wasn't retaining top technical talent, but it could if the startup community would just try harder, or something.
The reason the best devs in Chicago are leaving or not working on startups there is because there's not enough rich people and VC funds funding startups to make it risk free and interesting for them to do so.