You open https://yourbank.in. Two problems must be solved before your password may travel: is this REALLY the bank? And how do two strangers agree on a secret code while everyone can hear them?
Identity and secrecy. The handshake solves both, in that order, in milliseconds. (You will also hear this called SSL — that is the protocol’s retired ancestor; everything modern is TLS.)