It's called a safety because sometimes the team that has the ball will use it to their advantage. Give up the 2 points to avoid having to punt from your own end zone, giving your opponent better field position.