HIPAA is a United States federal law. It applies to covered entities, meaning health plans, health care clearinghouses and most health care providers, and to business associates that handle PHI on their behalf. Information is PHI when it relates to a person's health, care or payment for care, and identifies the person or could reasonably be used to identify them.
The same health detail may not be PHI in other hands. A fitness app that is not a covered entity or business associate is generally outside HIPAA, though other laws may apply. For data licensing, the key point is that PHI cannot simply be sold. The Privacy Rule restricts disclosure, and a sale of PHI generally requires the individual's authorization. The usual path is de-identification under one of HIPAA's two methods, Safe Harbor or Expert Determination. Properly de-identified information is no longer PHI. Business associates must also check their agreements with covered entities, which often restrict de-identification itself. This is general information, not legal advice.
Companies outside healthcare can hold PHI without realizing it. A software vendor or call center that serves providers or health plans may be a business associate, with PHI in its tickets, recordings and logs.