what figurative language is this and why

my thoughts are senseless to mankind, as a dreams trouble or the speech of birds

This is an example of simile, comparing the speaker's thoughts to dreams, troubles, or the speech of birds to emphasize their lack of coherence or meaning to others.