Maybe they are not programmers but they surely work in a team or company where everybody is supposed to work as efficiently as possible together.
Simply throwing your unstructured and unreadable code over the wall, with the excuse that it's not your key responsibility so somebody else should fix it, is just bad.
It doesn't mean of course that everybody is supposed to be an expert programmer, but a minimum effort to help your colleague is surely not too much to be asked.