That's because your "quick throwaway" code solves a real problem. It is useful, it works, it is very likely easy to understand.
In short: It's good code.
(It might not be "elegant" or "clever" or even "neat". Those things are overrated.)
> It is useful, it works, it is very likely easy to understand.
It probably mostly solves the intended problem, and might be so close to coming apart that nobody dares improve it.
That's because your "quick throwaway" code solves a real problem. It is useful, it works, it is very likely easy to understand.
In short: It's good code.
(It might not be "elegant" or "clever" or even "neat". Those things are overrated.)