A company in Japan selling pedometers - or, as the creators called it, manpo-kei (which translates to 'the 10,000-step meter') - came up with the goal as a marketing tactic. It's a nice round number that feels doable but still like a challenge, so it stuck around.
Well over 50 years later, we're still trying to clock in 10,000 steps a day on our fitness trackers. Researchers have published studies to assess whether the goal is actually beneficial, or whether we could do less and achieve just as many benefits of walking.