How does OpenCore obtain macOS?

Is it true that I don’t need a copy of macOS before starting with OpenCore? How does OpenCore legally obtain a copy?

Author: @s2406829