It's not required that you punt after a safety.
It's a "free kick", meaning you can kick it however you'd like.
Most teams punt because they can get enough hang time for the defenders to prevent a long return. If they had K who could boom it out of the end zone from the 20 they would probably kick.