Why does the decoder use masked attention?

Questions

Why dоes the decоder use mаsked аttentiоn?