"Fixture" comes from the Latin fixus, "fixed"; in English it meant something fixed in place, and xUnit borrowed it for the fixed state a test relies on.
The word entered English in the 16th century meaning "something fixed or attached", from Latin fixus, past participle of figere, "to fasten". By the 19th century it meant a piece of equipment permanently attached to a property ("light fixtures", "bathroom fixtures"). The xUnit community borrowed it in the late 1990s to name the fixed baseline a test needs: the state that must be in place before the test can be meaningful.