He was arrested for a drug crime in your apartment, and had drugs in his possession at the time. The judge found that to be a sufficient concern to bar contact.
He can speak with his lawyer about modifying the terms of his bond, but there are more important things for him to deal with in preparing the defense of his case. Unless and until he actually gets the resources together to post bond, it doesn't have a material effect on you.

