Adverse selection and how insurers respond
Adverse selection is the tendency of people who expect a loss to buy cover more eagerly than people who don't. If an insurer can't tell them apart, its claims exceed its pricing. Insurers respond with underwriting (health questions, inspections), waiting periods before benefits start, exclusions for conditions known at purchase where the law allows them, and group plans that enroll people for reasons unrelated to their risk.
Moral and morale hazard are handled by making the insured share the loss: deductibles, coinsurance percentages, benefit limits and the rule that insurance pays no more than the actual loss.