Researchers are often interested in answering questions about entire populations, but for one reason or another data cannot be collected from the whole population and only sample data is available.
This is where hypothesis testing comes in. It allows us to make inferences about a population using sample data.