It's obvious that halide ions are good nucleophiles, since they have -ve charge and are attracted to +ve charge
The neutral halide CH3F however,is polar i.e. there is a :delta:+ on the carbon and a :delta:- on the fluorine. Since fluorine is a better leaving group than a nucleophile, in the presence of a nucleophile e.g. a base, the carbon prefers to act as an electrophile being attacked by the base, pushing the fluorine out since it is a good leaving group. E.g. an SN2 mechanism