Because the requirements being placed on social media sites are much more nuanced than simply allowing or blocking content... to implement this all in the OS or browser would require an exponentially more complicated API.