Actually this is two different situation.
firsrt one charged conducting that means a metal surface or a body given as charge . Then all the charge resides on the surface .
Second one non conducting charged that is insulator is given some charge then charge evenly spread over the volume that's the difference