More than 4,000 people were admitted to hospital due to the smoke, a government inquiry has heard.