The above three posters have no idea how complex software development is. Apple likely knew about this bug and had a fix in testing already.
Case in point...
Facebook is written in PHP (actually a fork of it now). Each month, a new version of PHP is released that has many bug fixes, some of which were first added to the bug database many years ago, and they've remained in the bug database this whole time because other issues were more important, or a fix just wasn't possible until now. Apple's software development is the same... bugs are identified, a ticket is created, solutions are discussed and tested, and only when they are ready do they get released to the public.
There's always going to be bugs to fix. Even if something worked one day, something else may break it, so a fix is needed. These are Apple's first Lightning-based EarPods, so bugs are bound to exist.
This isn't about defending Apple. It's about being realistic that software (and hardware) development is a complex process that doesn't always go perfectly or on schedule. Every leaf that gets turned over reveals more bugs that may have otherwise remained hidden and unknown. Switching to Lightning was a big leaf!