There is something going on with Shanks that we don't know about. Oden flashback kind of suggested there was something said between Roger and Shanks that made him very upset. Despite all the mystery surrounding Shanks, one thing that is very clear is his fondness of Luffy. I don't think he would ever do anything to betray him.