What's a haunted house? To put it bluntly, it's a house where someone died. And it can't just be a natural death, like dying from illness.
It has to be a violent death...
Violent death refers to unnatural death, such as those caused by a home invasion robbery, or suicides born out of resentment...
People who die an unnatural death, because their lifespan is not over, will become ghosts when they die. Not content with their fate, they become malevolent ghosts, complicating the energy and disturbing people in the house.
The landlord who owns a haunted house is also unluckily stuck with the property, because it's tough to rent or sell a haunted house. If they conceal the truth and trick someone into buying it, and a dispute arises, in a lawsuit, the court will likely rule against the landlord.