Why is class still exist after removeClass?

Why is class still exist after removeClass?

Why is class test still exist after removeClass?

<style>
        a.test {
            font-weight: bold;
        }
</style>

<script>
    $( document ).ready(function() {
        $( "a" ).click(function( event ) {
            removeClass( "test" );
           
            alert( "The link will no longer take you to jquery.com" );
            
            event.preventDefault();
           
          
        });
       
        $( "a" ).addClass( "test" );
    });