Software does what its users want it to do.
In the case of rents, the users want it to maximize profit.
The users want it to maximize profit because they've been told you can distill every facet of good and bad in a society to whether the line goes up.