batteries can do funny things and let you down intermittently. 5 years is not a bad life for a car battery. i would start by getting it checked. other possibilities could be faulty starter motor, bad earth connection to engine, starter relay or ignition switch. i would guess most likely battery