The boiling water causes the inside surface of the thick glass to expand rapidly. But the outside of the glass expands at a much slower rate, as it takes time for the heat from the inside to reach the outside, and the expansion to equalise. It is this difference in expansion that can cause the glass to break.