It's because you do dd($request->all()). That is now being converted to HTML and returned. You can do that in an ajax call because inertia won't understand how to handle the generated HTML for the dump.
Instead of dumping it in Laravel, you can for example console.log the data in your javascript or write the content you want to dump to your log file Log::info('content')