The private key is Created from the public key using math that same public cable always produce that same private key and vice versa.
You are
WRONG! Private key generated first. After that, from private key public key is generated using defined algorithm. Only in that sequence.
with private key you signed your transactions, and you share your public key to other nodes (and users) and they use it to verify your signature.