Junior vs senior isn't just about how much knowledge you have about programming in general. It can also be correlated to the responsibilities a position might hold. For example, a senior developer likely has to mentor a junior developer while they learn everything they need to know to operate at a company and how the codebase is organized.