A psychotic episode can be brought on by a tone of factors.
Currently, Neuroscientists are looking at an overabundance of dopamine in D2 dopaminergic neurotransmitters in the limbic system (at least for schizophrenic cases)
This is just the most base physical explanation, truth is there can be a whole multitude of causes like
>>11726560 said.