As others have said, you’re seemingly ignoring the existence of EU regulations which apply automatically without needing to be transposed into local law, and of the Court of Justice of the EU whose decisions are binding for local courts.
Both of these were established by the treaties that were in place when Poland joined, and further reaffirmed in the Treaty of Lisbon (which was supposed to be the clarified and rewritten European Constitution, but that was a bridge too far for some countries’ voters, so instead it became a web of amendments over the existing treaties).
"To the extent that a provision of the Charter refers to national laws and practices, it shall only apply to Poland or the United Kingdom to the extent that the rights or principles that it contains are recognised in the law or practices of Poland or of the United Kingdom."
" 1. The Charter does not extend the ability of the Court of Justice of the European Union, or any court or tribunal of Poland or of the United Kingdom, to find that the laws, regulations or administrative provisions, practices or action of Poland or of the United Kingdom are inconsistent with the fundamental rights, freedoms and principles that it reaffirms."
"In particular, and for the avoidance of doubt, nothing in Title IV of the Charter creates justiciable rights applicable to Poland or the United Kingdom except in so far as Poland or the United Kingdom has provided for such rights in its national law."
“Charter” referred here is a separate document mentioned in Article 6 of the treaty:
The Union recognises the rights, freedoms and principles set out in the Charter of Fundamental Rights of the European Union of 7 December 2000, as adapted at Strasbourg, on 12 December 2007, which shall have the same legal value as the Treaties.
The provisions of the Charter shall not extend in any way the competences of the Union as defined in the Treaties.
So the Charter is about human rights, and as the treaty makes clear, doesn’t extend the competences of the Union. Poland and UK wanted to put a further point on this for some reason. It is not a carve-out from the treaty.
Both of these were established by the treaties that were in place when Poland joined, and further reaffirmed in the Treaty of Lisbon (which was supposed to be the clarified and rewritten European Constitution, but that was a bridge too far for some countries’ voters, so instead it became a web of amendments over the existing treaties).