How to get terms of a custom post type in a loop inside footer.php

get_terms is not the function you need. This function retrieves an array of WP_Term objects for all terms within the given taxonomy

Update your code to use wp_get_post_terms instead of get_terms. You can keep the same parameters. This function will retrieve the terms used on the current post.