Most landlords don’t want you leave after one year. That’s just a “standard” lease term. It’s far easier and cheaper to keep you as a tenant than to find someone else.
…unless you’re a troublemaker!
Don’t get discouraged and don’t let a realtor play mind games with you. I wouldn’t talk to either of these guys again if that’s what they’re coming at you with.
A good realtor doesn’t consider it his job to convince you to buy.