That is why it says, repent and get baptized. It saves you by the resurrection of Jesus Christ. This is the only verse that says that baptism saves. But, the NIV translation of the verse is unfortunate. The key word in this section is the Greek antitupon.
Baptism is a representation, a copy, a type of something else.
The flood waters destroyed the ungodly. It was the Ark that saved. Noah entered the ark by faith. Baptism here, in my opinion, refers to the Ark, not the waters. Get up, be baptized and wash your sins away, calling on his name .