That's because they have different design and manufacturing process. While they are designed to do the same things, they are actually quite different. Here are some descriptions:
https://www.dsiac.org/wp-content/upload ... cument.pdfF-35:
One of the more complex processes is that for the F-35 canopy fabricated by GKN Aerospace Transparency Systems. The acrylic and other special materials-based shell is loaded into a forming tool in an oven heated to 200F where the canopy forms over a span of approximately 3 days. During that time, a control system automatically adjusts clamps to control the forming process and ensure the shape remains uniform
The interlayer materials include polyurethane, silicone, and other proprietary materials with tailored optical properties that are used to bond the core plies together [1]. The interlayer materials can provide additional safety features such as bird-impact resistance, pressure “failsafe” capability, and anti-ice/anti-fog systems [5]
F-22:
The F-22 canopy, depicted in Figure 4, is the largest piece of monolithic polycarbonate material being formed today. It has no canopy bow (frame), which is conducive to superior optics throughout the canopy (not just in the front) and offers the requisite low-observable features. The canopy is 3/4-in. thick and is actually made of two 3/8-in.-thick sheets that are heated, fusion bonded (the sheets meld to become a single piece), and then drape forged [8].
There is also differences in exact composition of coatings used in the canopies:
2.2.2 Coatings
Interior and/or exterior coatings may be applied to help protect transparencies and aircrews from various operational or environment threats, and they provide improved low-observable performance, solar-heat reduction, laser protection, and/or electromagnetic shielding. Such technologies are designed to be compatible with night vision systems and other optical requirements.
On some aircraft, the protective coating may have an obvious tint. A similar tinting may perform several different functions depending on the aircraft on which it is applied. For example, the gold coating on EA-6B canopies, depicted in Figure 5, protects the crew from the radiation emitted by their own jamming pods. Similar coatings on aircraft like the F-16 and F-22 may be used to prevent radiation from threat radar systems being reflecting off the interior cockpit structure to help reduce the aircraft radar cross-section
Interesting patent from PPG Industries which supplies coatings to F-22 and F-35 and most other US military aircraft:
https://patents.google.com/patent/US20120328859A1/enI think F-22 canopy uses Indium Zinc Oxide (ITO) in the coating and F-35 might use Aluminum Doped Zinc (AZO) as indicated in the patent. There is probably not that much difference in stealth qualities, but AZO is significantly cheaper and has greater flexibility (can be made thicker and can be more durable) and resistance to corrosion (good especially for naval applications).