Short answer: It's a dialectal variant. Different dialects have different sounds. Longer answer: The interdental fricatives, which we represent as "th," are relatively uncommon; most of the world's languages do not have them. The "f" sound is much more common (though still not as common as something like "s").