I know that some bacteria become competent when there is not much food available in their environment.
I don't really understand why this is useful for the cell. I've seen some other organisms form a biofilm or get together to become a slime when starved and I understand the utility of this mechanisms (reducing energy consumption and being able to move around easily to look for nutrients).
The only plausible explanation that I see is that being competent might be useful to take advantage of the DNA of dead cells. Am I right?