I'd say there is a variety of ways they can and do make money.
They can provide the technology, or the "pipes" for straight market and ECN access. They also can provide other things like algos, smart routers, or research; or execution services....they make their money on volume, primarily.