Lightning doesnt turn into glass its the sand that turns into glass the glass in your window is produced by heating sand to a liquid then cooling it into a noncrystalline solid in a process called vitrification lightning produces enough heat when it hits the sand to produce this process