There is nothing wrong with meditating just to meditate, in the same way that you listen to music just for the music. If you go to concerts to "get culture" or to improve your mind, you will sit there as deaf as a doorpost.
In this external world, which is full of finite things, it is impossible to see and find the Infinite. The Infinite must be sought in that alone which is infinite, and the only thing infinite about us is that which is within us, our own soul. Neither the body, nor the mind, nor even our thoughts, nor the world we see around us, is infinite.