There are many kinds of meditation. The unifying idea behind them all is that it deliberately directs the mind to some task, but the tasks can be widely different. What you're describing is just one way to practice a particular kind of mindfulness meditation.