However later on Wednesday morning he saw a body bag outside his flat and took the photos on his iPad and uploaded them to Facebook.
Prosecutor Tom Little said: "He lives very close to Grenfell Tower as the court will be aware for the catastrophic fire on June 14.
"He uploaded photographs and video of the deceased inside the body bag and then five photographs of the upper body and the face and the blood that had drained from the body.
"It appears as if that individual might have been someone that jumped from the tower and had not survived and was waiting to be moved to the coroner's mortuary."
After his arrest he provided the police with the pin to his iPad and phone and the images were taken down from the web.
Mr Little said the offences were high culpability because "even the fact of the death would not have been known to the family" of the victim at this early stage.
The court heard the victim has yet to be identified and the defendant had been kept in custody for his own safety after his arrest.
Michelle Denney for the defence said "It was an unusual case" and Mwaikambo, who has not previous convictions, had been making tea for the firefighters.
She said: "He found the deceased person and was shocked by the fact the body was there and felt a sense of shock that the body was there unattended."
The defendant had tried to find someone to come and help but "there was not one else in sight" and took the photos to 'show how the victim was being treated' and get someone's attention.
She said: "He was not someone that has gone to the scene to look at what's going on in some macabre way."
She added her client had witnessed a lot of the terrible things throughout the night, it was an "error in judgement" to post the images and 'would not have done so had he not witness some of the traumatic events that unfolded'.
Ms Denney said: "He accepts he should have taken them down and he accepts posting the images was ill conceived.
"He apologises to the victim's family any all the other victims for what he has done."
Sentencing District Judge Tanweer Ikram said: "The whole country, if not the whole world, has been shocked by what has taken place in the last few days in relation to the fire at Grenfell Tower.
"The horror is not to be underestimated.
"The dignity of the dead must always be respected.
"What you have done by uploading those photos shows absolutely no respect to this poor victim. To show his face as he lies there is beyond words.
"That view is shared in the horror and disgust that is shown by those people that have uploaded messages on your profile.
"It is an aggravating feature that when people said to you 'This is really sick, just call the police' and 'call the cops rather than post photos", you didn't.
"You didn't remove the photos.
"These offences are so serious that a community order or financial penalty would not mark the seriousness of the offence."
The judge accepted Mwaikambo had no previous convictions and was remorseful for what he did, but with the events of the fire the case was "unprecedented".
Mwaikambo, of Testerton Walk, was given six weeks for each charge to run consecutively and ordered to pay a victim surcharge of £115 and and costs of £85.