The issue then is that Mastodon FE wrongly reports the numbers as zero instead of returning, 'hidden', or 'unknown' or just hiding that output altogether. Thus their front end is inadvertently misleading.
I vaguely remember some FE like Pleroma or Friendica actually allowing the user to select hiding followers and followees and reporting them as 'hidden' in the number field.