Notice they show a rectangular prism and OA, OB, and OC are the edges of this prism.
Angles AOB, AOC, and BOC are all right angles as a given of the three unit vector OA, OB and OC all being perpendicular to one another.
AP is a diagonal of one of the faces and the OAP is a right angle since that face is parallel to the plane containing the angle BOC.
Try building a model using a cardboard box and define one corner on the base as O and the opposing corner on the top as P. By opposing I mean follow the vertical edge and then at the top of the box follow a diagonal to the opposite corner.