The reason why the doors open is because it lets off any unnecessary heat in the cargo bay caused by surface heating produced by the sun. Pretty smart idea when you consider that they carry many million dollars worth of equipment.
If anyone has another reason as to why the doors open I would very much like to hear it, cause that's what I was told.