Compact times differ

we are running compact on 2 servers.at Server A on 1 database the compact task runs 9 hours, on a replica of that database on Server B it runs for 2 hours.

hardware etc are the same, and so are the compact options.

the users do their transactions in the database on ServerA,.

what could be the problem ?