Like Peter, Paul, and others, John has false teachers and their heresies to refute. Gnostics as they were known were teaching that Jesus never actually came in the flesh if He was God and not only that but their confessions obviously didn’t align with their actions. John shoots holes all in this with the opening 10 verses of his epistle.