In The Pragmatic Programmer David Thomas and Andrew Hunt called it "Programming by Coincidence" (Chapter 6).
Programmers not actively thinking about their code might get it to work,
but they don't know why.
When it breaks,
the programmer doesn't know why and they can't fix it,
because they never knew why it worked it in the first place.