At the very end of the redirect function in pset7 in functions.php there was:

<?php
//exit immediately since we're redirecting anyway.
exit; 
?>

I know that exit prevents from interpreting any code below it but the function is returning anyway. So, why it existed here?

Thanks.