There is no evidence that boys and girls have different brains and are therefore good at different things. Girls perform better in school than boys, but that is not due to a difference in brain development. Although boys have, on average, larger brains than girls, this has nothing to do with intelligence. When it comes to the brain, boys and girls should be equally capable of becoming good at exactly the same things. The difference in performance, for example, that boys are better at math and girls are better at language, therefore seems to be mainly due to a difference in training, concentration, and especially self-confidence. For instance, boys have a preference for building and constructing from an early age. They also have more experience in exploring their environment from a young age. Such activities require good spatial thinking and reasoning, as well as the ability to assess spatial relationships. Since boys have more experience in spatial reasoning, they are somewhat ahead of girls in developing skills known to be important for learning in the areas of arithmetic, mathematics, and technology.
Van Tetering, M., Van der Donk, M., De Groot, R. H. M., & Jolles, J. (2019). Sex differences in the performance of 7ā12 year olds on a mental rotation task and the relation with arithmetic performance. Frontier in Psychology, 10(January), 1-11. doi:10.3389/fpsyg.2019.00107