In the case of Netflix, it is specifically to save on licensing fees. Gotham is expensive, yo.
Apple's always had their own typeface, though I don't remember them using one as heavily as San Francisco. But it feels very in-character for them.
Samsung did it, I suspect, because Apple did.