You can remember the meaning of 出庭 with this easy mnemonic:
I don't have time to go out (出) into the court (庭) yard when I have to appear in court.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.