It is not about which one is correct. Its about active and passive voice.
The house cannot paint itself in red - someone has to paint it.
The active voice is - Someone will paint the house. (someone doing something)
The passive voice with the "object of the action" in front - The house will be painted red. (the house cannot do the action paint! - It is the house having