(If you can answer that question, then you can know why it was fitting for Mary to keep the days of purification required by the Law of Moses.)
-A8
Jesus was sinless and did not need the baptism of repentance but submitted to baptism out of obedience to the law. Mary was impure due to the blood of birth and needed the purification rite physically and spiritually. The two obediences are not the same.