This is the usual standard for hung vanities. Pipes have to go into the wall to give you clean lines. The wall has to sit directly over the drain to achieve this. Can be weird to see at first but it is a standard practice. Frames are usually modified on site to accommodate the drain from sinks etc.