This is done to ensure the safety of the aircraft and its passengers. Electronic devices emit radio frequency signals that can interfere with the aircraft's navigation and communication systems. Additionally, the use of electronic devices may distract passengers from following the safety instructions given by the crew.