Entropy defines the spontaneous direction of heat flow
It may seem intuitively obvious that heat flows from a hotter object to a colder one, but if you were asked to prove that heat must flow in that direction, how would you do that? Moreover, if we wish to quantify the energy associated with heat flows we need a function that describes how heat is related to temperature. That function is the entropy function.