The police said right away that they thought they knew what the motive was. I assume it was based upon what Mary said in her confession.
Even if the prosecutors don't know the motive, they may want the psychiatrist to confirm that Mary "suffers from post-partum psychosis" just for CYA purposes.
Anyone remember any cases of that happening?