Developers who don't actively think about their code are programming by coincidence—the code might work, but there's no particular reason why.
I faced with this cases so many times. It works by nobody knows why it just was tested under small set of conditions and nobody reads documentation