The main reason why we have two ears is:
to determine the direction from which sound is coming
Depending on the difference in time that it takes to reach the two ears, the direction from which sound is coming can be determined. This is the main reason why we have two ears.