The battery is not necessarily on its way out. Take it to a garage though - they'll check the battery and alternator for free.
My missus' car had problems starting a while ago, so she took the car to a local garage for them to test the battery and the alternator.
Battery and alternator were deemed fine, so the question they asked her (which is what I'm asking you) was, "when you use your car, do you mainly only travel short distances?"
My missus only uses her car to go to work (less than half a mile), go shopping (less than a mile) and visit her mum's (approx 2 miles). They told her to get on the motorway and go on a 10-15 mile round trip to charge the battery up. Everything was fine after that.