The presence of a biofilm provides a larval animal with important information. It means that: (a) there’s a solid surface, (b) which has been around for a while, (c) isn’t too toxic, and (d) has enough nutrients to sustain microbes. Those reasons are as good as any to settle down. The better question would be: Why wouldn’t you rely on bacterial cues? Or better still: what choice do you have?