Basically this is working as designed because we use a drop-in configuration for DietPi to overwrite OpenSSH defaults.
You need to modify /etc/ssh/sshd_config.d/dietpi.conf
or simply run following command to disable ssh password logins for user root
/boot/dietpi/func/dietpi-set_software disable_ssh_password_logins root