Are you sure what you want to get is the category? I think that WooCommerce uses a custom post type and custom taxonomy for products, but I’m not sure what those are right now.
You might want to try get_the_terms() https://codex.wordpress.org/Function_Reference/get_the_terms