That's expected. There's usually an option to disregard constraints when you delete tables via database tools. In phpMyAdmin I believe there's a checkbox in the "delete tables" confirmation modal for that.
Also if you delete tables via the migration rollback feature of Flarum, it will delete them in the correct order so that all constraints get removed.