"being at the top," 1590s, from top (n.1). Top dollar "high price" is from 1942. Top-drawer (1920) is from British expression out of the top drawer "upper-class." Top ten in popular music is from 1945 ("Billboard"). The top dog is the one uppermost in a fight, from 1868 in figurative use, opposed to the underdog.
But if the under dog in the social fight runs away with a bone in violation of superior force, the top dog runs after him bellowing, "Thou shalt not steal," and all the other top dogs unite in bellowing, "This is divine law and not dog law;" the verdict of the top dog so far as law, religion, and other forms of brute force are concerned settles the question. [Van Buren Denslow, "Modern Thinkers: What They Think and Why," 1880]
early 13c., "to defile or pollute with sin," from Old French soillier "to splatter with mud, to foul or make dirty," originally "to wallow" (12c., Modern French souillier), from souil "tub, wild boar's wallow, pigsty," which is from either Latin solium "tub for bathing; seat" (from PIE *sodio- "seat," from root *sed- "to sit") or Latin suculus "little pig," from sus "pig." Literal meaning "to make dirty, begrime" is attested from c. 1300 in English. Related: Soiled; soiling.