Create a shortcode to show product tag name on tag archive

Because the return value from get_the_terms() is an array, not a string. See the Codex https://codex.wordpress.org/Function_Reference/wp_get_post_terms for the array values returned.

To return the ‘name’ element of the array , use

return $productTag['name'];

(The Codex is a great place to figure out what a function does….)