The meanings of “complement” and of “compliment” are quite different.
A complement is what makes a completion. For example, the complement of the set of all horses is the set of everything that is not a horse, and white wine is a complement of fish.
A compliment is an expression of praise.