Passing data as a parameter

why we are passing data as a parameter in the function