Why is Texas known as the lone star state?

The nickname, "the Lone Star State", is a reference to the state flag that has a single star in the center of the blue column.