Hilkiah the priest, et al, went to Huldah the prophetess in Jerusalem...
2 Kings 22:14

The office of Prophet carries the authority of a message from God, but no formal place in the Kingdom's hierarchy. The existence of female prophets has no bearing on God's preference for men in positions of formal authority.

Why did they go to Huldah instead of Jeremiah or Zephaniah? Jeremiah was also a priest and possibly Hilkiah's son. I would think he would be a better choice. Maybe Hilkiah didn't respect his own son enough? Maybe Huldah was older and had a better reputation at the time. Maybe Jeremiah was a troublemaker, while Huldah's husband was a respected member of the royal court. We can only speculate.