Well once you use echo, that in effect puts everything inside these " ", into html.
Let me show you
<a href="mailto:myemail@email.com">EMAIL!</a>
is the same exact thing as
echo "<a href='mailto:myemail@email.com'>EMAIL</a>";
This is because your PHP script is processed before it ever reaches the browser, and once it reaches the browser it is shown as regular text