It's called synthetic equivalence, a.k.a. put/call parity.
https://www.fidelity.com/bin-public/060_www_fidelity_com/documents/SyntheticOption_Webinar.pdf
The basic idea is that these things act exactly the same with regard to P&L. There can be some practical differences - e.g., if you bought...