health insurance

can someone explain to me why you have to owe back some or all of the Advanced Premium Tax Credit if you CANCEL your marketplace plan and you sign onto your employer’s health insurance plan partway through the year?