It happens when enough space is not available for the tooth to erupt there. the treatment also depends upon how much tooth is still inside the bone. if the tooth is only covered with the gums minor gums trimming can solve the issue. if it’s inside the bone needs extraction.