Are you perhaps asking from a US perspective? Or maybe Indian too. I don’t know of any other countries where marriage is expensive really.
We got married in Vegas as a fun thing to do, since we’re Swedish. Legally the difference is extremely small between being “sambo” (co-living) and being married, and we could just as well kept going without getting married.
Weird comment on the legality. Of course departing employees at any company have no rights whatsoever to bring company owned IP with them.
Happy that she did, but no idea why anyone would think otherwise.