Short answer
Walk-forward testing is a repeated out-of-sample process. You choose parameters or strategy logic using one chunk of history, then test it on the next chunk that was not used to make the decision, and keep rolling both windows forward.
That is much closer to the real research problem than one polished train-test split because it forces the idea to survive several regime changes instead of one curated reveal.