Burning sensation in rectum after masturbating, what does this mean?

Prostatitis. Hard to say with little information. If you're a male, the most likely cause is prostatitis. See your doctor for evaluation.