related: cohesion and coupling
It is so crucial that 2 out of 5 SOLID principles single responsibility and interface segregation are direct derivations from this concept.
The principle is simple: don’t write your program as one solid block, instead, break up the code into chunks that are finalised tiny pieces of the system each able to complete a simple distinct job.