GDPR is the framework legislation of Europe while CCPA & CPRA are the framework legislations of California.
The essence of both these laws is the same – to protect the data privacy of their respective constituents. GDPR applies to EU residents while CPRA/CCPA applies to Californian residents.
They do differ in terms of their requirements also. Please refer to this short video for additional information.