If Alice wants to send data to Bob
Then you must be clear about how to send data to receiver
If sender sends data with encrypting receiver public key which receiver has shared, no one knows actually what is the private key of receiver. So receiver only can decode it with its private key.
This way the secret message will be shared by the sender to the receiver