Why do steins have lids? What's the point of the lid on the beer stein?
Today they're largely just traditional.  However, originally they helped:


To keep the beer cool by preventing airflow from above.
To keep insects and other contaminants out.
To prevent spillage while cheers-ing and generally carousing.


See the following article on Stein Lids for more detail.