“5” might be the key for a thousand different records in your database. A uuid is a key for exactly one. Integer keys permit wrong joins to have the appearance of working.
In a lot of cases that can be a pain due to overlapping integer primary keys and large parent-child table sets.