FTP Calculation Question

I cycle with a Garmin 1040 Edge on my handlebars and a Forerunner 965 on my wrist. These wonderful devices are paired so I can follow my heart rate on my 1040 Edge as I ride. I also have a cadence meter on my bicycle cranks. I do not have a power meter. I have never used a power meter. Question. After a ride, my 965 shows a result for my FTP. How is that happening? How do I get an FTP calculation without a power meter?  Is the FTP calculation legitimate? Can I trust this FTP calculation?