A phrase is a group of two or more words that does not contain a subject and a verb working together. There are many types of phrases, including verb phrases, adverb phrases, and adjective phrases.
So, because there’s movement from one place to another, the accusative case das Bett has to be used after the dual case preposition unter. In the second sentence the shoes are already under the bed.