Maybe because shooting at the car as it moves away provides more secrecy? Shooting from the front would cause people to look straight ahead at the direction of the building he was shooting from. Oswald very much wanted to get away with the crime.I was in Dallas this summer, and visited Dealey Plaza. The first questions that occurred to me, why didn’t Oswald fire when JFK was coming toward him on the street that was directly in front of the window? Why wait until the motorcade turned onto Elm and was moving away from him?
This link takes you to a live feed from that window: