Technically speaking, they should have transferred the OS license with the computer itself. If they didn't do that then, properly speaking, it is the responsibility of the purchaser to legally acquire an OS. To use your motor vehicle analogy, pirating an OS is no more legal than stealing an engine just because you bought the goods sans one part.
Of course it's a moot point since you can find a free OS for virtually any Mac.
Of course it's a moot point since you can find a free OS for virtually any Mac.