You are using a local loop, so template functions won’t behave as expected without a $post
parameter:
<marquee>
<?php $latest = get_posts('numberposts=5&cat=13'); foreach( $latest as $_post ) : ?>
<a href="<?php the_permalink( $_post ); ?>"><?= get_the_title( $_post ); ?></a>
<?php endforeach; ?>
</marquee>