That's "thinking for the company" which I had rarely seen during my 10 years working for a large company. "Thinking for myself / department" approach is much more common, unfortunately.
But I just appreciated that could have so easily been a 'thanks for your time', handshake and leave, with no-one satisfied.
What you've described sounds to me like a setup for hiring an H1B employee. The employer is legally required to interview everyone who meets the requirements, and must hire qualified domestic employees if they are available for work, but the employer will look for any reason to disqualify domestic candidates.
A whole industry of consultants popped up a decade ago that coached companies on how to use this "loophole" to favor H1B over domestic employees (which is on it's face, illegal. If a US employee is available, the employer must hire him so the trick is to find a way to disqualify this domestic candidate.)
Or maybe they already had an internal candidate and were required by HR to interview some additional people (e.g. you) before they discover, to everyone's surprise, the internal candidate is the very best one for the job. "Going through the motions" to interview others when their mind was made up before the job description was even written.
EDIT: Just so it's clear, I'm not saying Amazon does these things; and I don't know anything about this particular case. I am saying this sort of faux-interview happens in the industry, and has the same "feel" of the interviewers simply going through the motions.
The right solution for this is to keep employers out of the skill-based immigration process.
However, there was a bit more to the story - one, that I'd started discussions with them and the agency prior to moving from Australia to Seattle, and they'd been willing to sponsor a visa (that wasn't needed), and sure enough, a couple of weeks after, my team had some new testers who weren't H1B who'd filled the position.
And it might be a little misleading on my part, there wasn't a sense of absolute, outright apathy. But just a growing more deflated tiredness, perhaps.
Anyway, I got into the interviews, and I could sense something was up. I was answering the questions but they didn't seem... enthusiastic... about them, or me. I like to think I usually interview decently, though of course I can improve.
Eventually someone says, "Hmm, can you wait here a minute?" and a new person comes in with him a few moments later.
"So... I'm not sure why the agency sent you to us." Okay...? "You're definitely over-qualified for this role, and frankly we think you'd be bored." I thought it was a good opportunity to get in the door (and MSFT is a great place to work), so I tried to offer a little placation, when he introduced the other person, "But I know that [name] here has been looking for a PM, so why don't you talk to her."
I walked out that afternoon with a different, better, higher paying job, because someone thought "outside the box".