Why is girlfriend one word but best friend is two words?

Because your best friend gives you space when you need it.