Why is not the “h” pronounced?

The h is the eighth letter in the Latin alphabet and in the current Spanish is not pronounced, it is mute. Why? Because many of the words that in Latin were pronounced and written with f, through the centuries and the evolution of the own language, the f became a h aspirated until weak so [...]