STAMFORD, Conn.—Ahmed Khattak started an ecommerce business in New Haven, eventually moving it to Seattle. By 2014, he decided he was ready for a new opportunity and a new location.

Friends advised him to start his next company in San Francisco. Instead he choose Stamford.

“We looked around and said, Connecticut is home,” said Mr. Khattak,...