Many people have watched Harry Potter, but over time the details are forgotten, and some are not familiar with the films at all, but want to understand the plot. For everyone who did not know or did not remember, we will briefly tell you why Voldemort killed Harry's parents.
Voldemort killed Harry's parents because he heard a prophecy according to which a child born at the end of July would be able to destroy him. The murder of Potter's parents was necessary, since they stood in Voldemort's way to his goal — Harry himself.
According to the prophecy, two boys were to be born at the end of July — Harry Potter and Neville Longbottom. Both came from families that fought against the Dark Lord, but Voldemort chose Harry, since he, like himself, was a half-blood.

He decided to get rid of a possible threat and went to kill the baby. Lily and James Potter tried to protect their son, but they died. However, Lily's sacrifice gave Harry a powerful magical protection that caused Voldemort to lose his body.