Explanation
The metal lid has a higher coefficient of thermal expansion than glass. So it expands more than the glass does when heated.