2001 ford focus

2001-ford-focus
My drivers side wheel bearing assembly needed replacing, now that’s done we cant keep transmission fluid in it. The mechanic filed the cv joint splines before putting it back in. What happened?