Roaches like fish tanks for a couple reasons.
1- water and warmth. They love warm, humid areas and need the water to drink
2-food and minerals. They can feed off of any algea or food residue on the tank. They also eat any calcium or salt deposits.
The motor on your filter is a nice warm place...