Apple monetizes Safari. They sell hardware and subscription services.
Facebook monetizes in part through these browsers. The changes to Safari hurt Facebook revenue.