Why did God create the punishment of hell to be eternal?

Why did God create the punishment of hell to be eternal?