Sense 6 is a semantic loan from Classical Persian بُت (but).
Practice speaking and memorizing "بد" and many other words and sentences in Arabic.