Imam ar-Razi mentions in his tafsir several possible answers to why the angels thought humans would cause corruption and spill blood.
First possibility is that they made this theory themselves. Possible reasons they made this theory:
They saw the behaviour of a previous creation of Allah: the Jinn. This opinion is narrated from Ibn Abbas (RA) and Al-Kalbiy.