This has happened twice to me in the last 24hrs and I ended up back at the exact same spot each time. It lost me a notch apple so kinda pissed. But mostly just, realms should be reliable, they are not right now. This needs fixing. Also, this happened on Bedrock for me so I think this is a general realms bug for both versions.
After the 1.13.1 update I have started to get this exact issue. Can confirm it isn't fixed yet.
Umija5895M Yes, we got the message in chat that the maintenance would be in five minutes and we logged off shortly after that. We weren't kicked or anything, we logged out and everything seemed fine until we logged back on.