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, you can install KASTA devices on different electrical circuits and then setup a group in the KASTA App to include the devices you want to have.