Why was JFK Shot?

JFK was shot because he was in the limelight. Supposedly, Oswald, the shooter of JFK shot him due to some sort of a conspiracy theory. However, whenever anyone is in presidential office, they become a target for the rest of the society.