Open Office was written by a german company and open sourced. As far as I know It does not use the codebase of Lotus 1-2-3 for windows.
It was bought by what was then Sun Microsystems and they decided to open source it as an attack against Microsoft. Made little to no difference against that monopoly at the time.