The rust showing is caused because the 2 metal sections have only been tacked together and then painted, leaving the joint open to ingress and unprotected.
You need to clean the area with a wire brush on a grinder and then if it's a structural joint, weld it fully, if not structural, seal the joint with a good quality paintable sealer or automotive seam sealer, before painting.