It is a sign of admiration, recognition and respect for a person's knowledge or skill in a given area
In truth for this locution the verb is used more as a pronominal, see Take off the hat, take off the hat, remove the CAP, chap.