Physics is a major with more and wider knowledge applied to mathematics.
To learn physics well, you must have good mathematical ability; However, the mathematics that mathematics majors learn is complicated and abstract, and it is still difficult for physics majors to deal with the mathematical problems of mathematics majors.
So, you also understand the relationship between the two. Depends on how you understand it.