> <h> for a time was not silent, and many words that start with <h> used to have an /f/.
Probably related, most words with an H in Spanish use an F in Portuguese. Like 'HONGO' - > 'FUNGO'.
In the 17th century there was a concerned effort to make the written language consistent in writing.