The answer is that the Federal Aviation Administration requires airlines to have ashtrays on their airplanes. Even though smoking is banned and airplanes are fitted with smoke alarms, the FAA knew that some people would still smoke. Providing a place for people to safely dispose of their cigarettes was deemed too important for safety reasons.