All Mary did was give birth to Jesus. He treated her just as he did with everyone else.
It was at Mary's insistence that Jesus performed His first public miracle (at the wedding at Cana), and it was Mary whom He entrusted to John at the Cross, telling her not only to treat John as a son, but for John to treat Mary as his mother.
To say that all Mary did was "give birth to Jesus" (as though that were so small a thing!) is honestly rather gross.