A little of both. If you maintain a certain number of miles per week, you will become stronger. If you actually work out, somewhere in among those weekly miles, you will become a lot stronger. "Work out" means some type of running workout. That could be track work, or that could mean simply running a bit faster than your normal, comfortable distance pace, such as a tempo workout or a threshold run.