Why keep the thermometer tip away from flask walls?

If the thermometer bulb touches the flask, the temperature of the glass will be measured instead of the temperature of the solution. Readings may be incorrect, particularly if the flask is on a hotplate or in an ice bath.