The structure afforded by piers provides an excellent habitat for many species of marine life. Including those that flathead like to eat. So it makes sense you are likely to find good populations of flathead around these man made structures.
You are likely to find flathead directly off and under many piers. Unfortunately, they tend to be amongst the most cautious.