Wall thimbles serve a dual function - to cover and seal a vent pipe hole in the wall and to provide air space between the gas flue vent pipe and the thimble itself for fire prevention purposes.
Wall thimble is required in most cases where a category III appliance (boiler or water heater) is vented through a combustible wall.