Two molecules can have the same atoms and bonds and still be mirror images; in drugs the two forms can act differently in the body, so they need names that tell them apart.
Rank the groups by the atomic number of the atom bonded to the stereocenter: bromine (35) beats chlorine (17), which beats carbon (6), which beats hydrogen (1).
Turn the molecule so the lowest-priority group, hydrogen, points straight back, away from you, like the column behind a steering wheel.
Trace from priority 1 to 2 to 3. Clockwise is R, from the Latin rectus; counterclockwise is S, from sinister.
The mirror image has the same priorities arranged the other way round, so the same trace runs counterclockwise: S. Enantiomers have opposite labels at every stereocenter.