2014 sportsman NEED HELP loose bolt

so i was washing the wheeler after a ride and noticed this bolt backed all the way out luckly it hit the plastic and didnt fall out i wasnt able to move it in or out by hand but with a ratchet i turned it almost all the way back in it stoped about an inch short of all the way in i dont know if there was a nut that i lost or if it threads into something thats why im here