Why do you need to pass it to a function if the object is declared globally?

Code:
myStruct test_struct;