De h in ‘thee’ en ‘thuis’

Waarom staat er een h in ‘thee’ en ‘thuis’? Heeft die h iets met de ‘th’ van ‘theater’ of ‘bibliotheek’ te maken?