I have always been interested in logical connections: how things fit together, where unnecessary work comes from and how a task could be handled more effectively by the people doing it.
Writing code is a means to achieve that result. The interesting part is what the solution actually improves in day-to-day work. Sometimes that means building an entirely new application. Sometimes it means improving a process, connecting existing systems or extending the software already in place.