Waste heat boilers operate by capturing waste heat from exhaust gases and converting it into steam or hot water, which can then be used for various applications such as electricity generation or process heating.