Humans going to heaven is not something that everyone must partake but by how we worship God and obey him. Rather, it is presented as the result of a person's relationship with God, faith in Him, and obedience to His will. God desires all people to be saved, but He also gives each person the freedom to choose whether to follow His ways or reject them.
Heaven is a place where we go to for eternal life, it is mainly for the righteous people not for sinners. While God knows the future, the Bible consistently encourages people to repent, believe, and remain faithful. Therefore, going to heaven is not portrayed as an unavoidable fate, but as the outcome of accepting God's offer of salvation and walking with Him throughout life.