Physics
Answer
Chimneys are provided over furnaces in factories because the hot gases are less dense and rises up and comes out through the chimneys. Smoke, fumes etc. around the furnace rush in to take their place and they are sucked out. Thus chimneys remove undesired smoke, fumes from the premises.