In the initial phase of research, often referred to as the discovery phase, your observations, beliefs, and general knowledge lead you to come up with a new question around an unexplored area of interest.
At the core of your approach is the concept of determinism, the idea that all events are determined by knowable and therefore testable factors. Next, you may develop a theory around your question. Your theory accounts for both known facts about your question and your new idea and explanation. This new explanation is your hypothesis.