"For those unaware, the Terminal app allows you to enter text commands to perform tasks on your Mac. Terminal is primarily intended for advanced users and developers, but unfortunately casual users can be tricked into entering harmful commands that can permanently delete files, change user permissions, and cause other problems."
The feature basically blocks the command from going through unless you confirm for a second time.