Cells carry receptors that respond to specific signals. When a peptide binds a receptor it fits, the cell changes activity. The response depends on the pathway involved.
Conventional drugs work more like skeleton keys. They fit many locks, including ones they were not designed for. This is why side effects happen. The drug does what it was designed to do, but it also does things it was not designed to do.
The lock-and-key model is simplified, but it is useful. Biology is not perfectly one-to-one in every case, and signaling systems interact. Still, receptor fit explains why different peptide signals can produce different effects.
Scientists are not inventing new biology. They are copying proven mechanisms.
This same precision speeds up drug development. The body has run the experiments. The signals work. The receptors exist.