In what way is Safari profitable? How is that even measured? Has any consumer in the last 10 years ever specifically paid for safari? Or do you mean the payments by google to be the default search engine?
The point was that developing Safari isn't what makes apple the money, it's setting Google as the default search engine of the default browser. So if Apple would stop maintaining safari tomorrow and would switch to preinstalling Firefox, they would still get the Google money (for setting Google as the default search engine of their Firefox installation). So Safari isn't profitable for Apple, as was claimed before.
Similar for Windows.