Footage from the scene shows distraught people on the ground near the car.
A man was seen covering his face as he sobbed, with blood running down his right hand.
A police spokesman said the boy had been in the car all day.
A crime scene was established and an investigation into the circumstances surrounding the incident is underway.
The boy’s father was questioned by police over the incident but has been released without charge, a police spokesman told NCA NewsWire.
Child safety advocates Kidsafe claim more than 5000 children are rescued from hot cars in Australia every year - the majority being babies and toddlers.
“Leaving children unattended in a car - even for a short period of time - can be fatal,” reads information on Kidsafe’s website.
“Children are particularly at risk because they can lose fluid quickly, become dehydrated and suffer from heatstroke.”