Unable to access the query variables in the template

I have WooCommerce installed. It has registered the product post type which was conflicting with it.

I renamed to endpoint and it works.