Why is the response time to command execution very long?

Why is the response time to command execution very long?
For example, I use a Aqara double key wireless wall switch in Decoupled mode, the time between pressing a button and turning on a relay can reach several seconds. Time is much less if I use Mi smart home gateway.
I tried to send a simple command through MQTT, for example zigbee2mqtt/0x00158d00033axxxx/set/state - the response time is also large.

I also have increased response time when using zigbee2mqtt compared to the Hue bridge or Xiaomi gateway. I just havenĀ“t found out what the reason is.