It’s just “find my iPhone” extended to individual parts to reduce theft. If you own the other iPhone you will have no problem getting rid of the “unauthorized parts” screen.
Reducing iPhone theft is an extremely worthy goal, especially for people who live in high theft countries.