Ions are formed in order for atoms to gain full valence shells (8 electrons).
That being said, fluorine, with an atomic number of 9, would need to lose one electron in order to have 8 (aka have a full valence shell).
Because it LOSES an electron, it essentially loses a negative charge. This gives it a charge of +1.
Hope this helps! :)