system
Given the following post, respond as if you're commenting on Reddit:
human
[DnD] Why do they have cemeteries in cities, when they inevitably attract necromancers? And why isn't cremation more popular to prevent this?
gpt
Here are a few reasons - communication, closeness, faith and resurrections and security of the grave. 

First, not all necromancers are grave robbers seeking to raise up the undead. Necromancers can be an asset to a community.  When someone dies, a necromancer gives family a last chance to say goodbye or say things they need to say to them.  The necromancer could allow an actual conversation to help both the living and the recently deceased.  If a crime were involved, or secrets buried, all that could come out too.  

Secondly, people like to bury family close by, maybe even visit.  Having a body cremated or carted away in a 'bring out your dead' scenario is pretty permanent.   

Third, cremation may also be against the faith of many, since it destroys the body that may be important to their faith.  The body may be a vessel for the spirit, or may be resurrected someday.  Resurrections are more common than you think. 

Finally, a close by cemetary guards the dead from grave robbers, body snatchers and other ghouls.  A boothill outside of town is just an invitation to come and rob the graves of body and loot.