Browsers were able to block pop-ups because websites used to open another browser window to display ads. Modern websites use modals using CSS and JavaScript within their page canvas.
It's hard to block them deterministically by the browser. Though uBlock Origin and NoScript can block almost all these annoyances.
In other words: browsers should just implement uBlock Origin by default.