FYI, Google runs quite a large spam team which flags scammy sites manually. Sites with such a modal are usually rather on the spammy side of life and gets flagged by the team. If you get too many flags you get severe penalties slowly eating your traffic in a way that it’s not clearly obvious and it can take years to recover.
But since it’s Medium such UI seems to be tolerated.
If I ran that team I would have killed Medium's, Quora's and Pinterest's search traffic. And soon maybe StackOverflows as well.