Finding out what customers want and how the market behaves, before you spend money guessing.
There are two separate distinctions, and mixing them up is the classic error.
Primary vs secondary is about who gathered it. Primary is collected by you for this purpose — surveys, interviews, focus groups, observation, trials. Secondary already exists — government statistics, trade reports, your own sales records, competitors' published accounts.
Qualitative vs quantitative is about what kind of data it is. Qualitative is words and opinions: why people feel something. Quantitative is numbers: how many, how often, how much.
You can have quantitative secondary data (official statistics) and qualitative primary data (interviews). The two splits are independent.
Qualitative tells you what questions to ask and why people behave as they do; it cannot tell you how common the behaviour is. Quantitative tells you how many and how much; it cannot tell you why. Serious research usually runs qualitative first to find the right questions, then quantitative to size the answer.
Be precise about which split you are using. 'A survey is secondary research' is a guaranteed lost mark.