Tickets change faster than code. Having to create a PR to update a ticket sounds like a bureaucratic nightmare.
Nothing stopping people from keeping tasks in a separate repository, of course - this would also make it simpler to just allow commits straight to `main`.