Can’t show Woocommerce product category description

Your code will probably work for post categories, but you need to specify the right taxonomy in the call to get_term to fetch the product category (which is what I assume you want to get). But actually if your $category actually contains the product category then I am not sure you even need to call get_term as the description is probably part of the category object.