The electronegativity of an element is a measure of its ability to attract electrons. The electronegativity of an element increases from left to right across a period and decreases down a group.
B is located to the right of C and P in the periodic table, so it has a higher electronegativity.