It is because the Codepen pens run inside an iframe.
_top is a different context as you can see it opens in the same tab and not a new one. Codepen debug mode is not inside an iframe so _blank works.
_top
_blank