Because they're defined via CSS ::before{content} and ::after{content} properties, and browsers don't make that text selectable for some reason.
<style type="text/css">
.code-line::before {content: '>>> ';}
</style>
<div class="code-line">print 12</div>
<div class="code-line">a = [i**2 for i in range(10)]</div>
Then the reader can copy the actual code without the interpreter's prompt.There needs to be a CSS property that makes the visible text selectable and copyable.