Answer:
When a design was commissioned from Borromini in the 17th century, he adapted to the already existing palazzo. He chose a plan resembling a star of David - which would have been recognized at the time as a Star of Solomon, symbolizing wisdom - and merged a curved facade of the church with the courtyard of the palace.