In the KASTA app, there is a group control function. Do all the grouped KASTA products have to be installed in the same electrical circuit?

No. Group functions are possible across multiple electrical circuits provided they are in the same KASTA Bluetooth mesh network.