Unifi AP + controller and unmanaged switch with rpi4

^^^ this. Since you don't have a Unifi gateway (USG/Pro, UDM/Pro/SE, UDR, UXG), those settings are not active.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.