Writing test is a work, and writing good test can be larger work than writing a fix. Without knowing the cause of the bug it is difficult to write right test.
Some bugs are difficult to reproduce automatically – they require third party packages, human interaction, enormous amount of computer resources (memory or CPU time) or unknown conditions.