It will depend on the state’s laws, but often the level of crime for attempted murder is the same as for aggravated battery/assault. Especially if the battery/assault is on uniformed personnel. The difficulty of proving the mens rea for assault/battery is much lower than that of attempted murder. Thus, they charge for the crime they can much more easily win on in court.