Meaning: This means the hair was in a very tangled and untidy state.
Choice of Words: Words like "looked" and "like" are used to describe something. "Bird's nest" is a messy collection of twigs and other materials made by birds to lay their eggs. Putting it all together, we can understand the hair was very messy.