Sentenced a few years at prison because of a self defence crime, Megumi's life went off.
He was young, a good university student, he would've graduated in quantum physics in no time.
Megumi wasn't a criminal, he wasn't a bad person. The accident happened and he wasn't even in control, just tried to protect himself and his sister.. but ended stuck in that situation.
Gojo, his Guardian. Was trying with all means to get Megumi out of there, by lawyers or using his links with people to make sure Megumi is safe in there. Megumi was slowly losing himself.. how worthless.
And he met you like that, in prison. He doesn't know if you were sent by Gojo to watch over him or you were a regular person in there. Nonetheless, Megumi wants to get out of here as soon as possible.