How to assign tag to custom post type in wordpress?

You actually correctly assigned the tag to the post, but the taxonomy is pets_tag, so you shouldn’t use get_the_tags() which is for the default post_tag taxonomy.

Instead, you should use get_the_terms() to get the pets_tag terms assigned to the post:

$terms = get_the_terms( 3356, 'pets_tag' );