Why did Jesus die?
Because God is just, Jesus was willing to die as your substitute. You and I deserve to die and to be separated from God forever because of our sin. However, Jesus died in your place to pay your penalty for sin.
The Bible says, “For Christ also suffered for sins once for all, the righteous for the unrighteous, that He might bring you to God.” 1 Peter 3:18
Jesus loved you so much He was willing to die for you, even though He didn’t deserve to die. Jesus died so He could bring you to God. Jesus died to remove your sins and He rose again, so He might give you eternal life.