That's not true. By restricting supply, they raise property values for all housing owners, whether they rent out their properties or live in them. NIMBYs and landlords should be natural allies as such.
I’m glad landlords let me rent for many years, because I was never forced to commit to buying a house in the wrong place for my career.