it might be because your battery is dying. but since cars have so much computers today it would be difficult to tell exactly what the problem is without a mechanic.
check connections to cellinoid switch.use a jumper bypassing switch,and if battery ok then check starter if bypassing switch doesn't do it. if doesn't do it & newer car probably in newer electronics needing test in garage.