Why did I get separated from my teammate?

I was playing Warzone assault last night with a friend and got put on the opposing team. Has this happened to anyone else?