Same thing happened with me @ Apple last year. Went through 4 or so interviews with the expectation that it was a remote role. Then the day before the big remote "onsite" I was told they actually wanted someone in-person. So I removed myself from the process. I'll chalk it up to 2021 being a confusing time for everyone - but I felt pretty burned by it.