Delays often have multiple causes. From the information presented, there is no reason to believe that the flight was delayed both for maintenance and for connecting passengers.
The pilot was more involved with the maintenance issue so that's what he says as the reason. The gate agent was more involved with the connecting passengers so that's what she said.
There is no reason for either of them to lie. Both reasons are airline controllable delays.