Stop in for a cup of coffee
With a connection to ground, current will flow through the relay like this.
As soon as it does that, the electromagnet in the relay will pull the internal switch connecting stud terminal to the solenoid terminal.
Then the solenoid on the starter engages, and that does the same thing inside the starter.