I tried to change the Twenty Twenty-One theme, everything worked normally, the number of product categories matched the product menu.
but I changed the theme to xstore, the number of products in the menu category is different from the number on the admin dashboard page.