Linux's security reputation is actually pretty bad. BSDs and UNIX variants have a good reputation. OpenBSD in particular is highly-regarded, in part because they audit changes rather stringently. Windows is getting better, and Linux is getting significantly worse.
OpenSSL is an extremely strong proof against the idea that open source is inherently more secure. It had tremendous numbers of very serious flaws that had been in it for years. Just because people can look at the code doesn't mean that they do. That's why the OpenBSD foundation forked OpenSSL, removed tons of options, and started developing it with their audit model as LibreSSL. It's why the OpenBSD guys recently replaced sudo with a new tool called doas that has far fewer options and as a result, far less that can go wrong.
In my experience, much software developed for Linux is built on the platform because it's free and it lets the developers work very quickly. Tons of open-source code runs on Linux, so you just have to download a bunch of libraries and write glue code to get them to do what you want. Unfortunately, many don't take the time to set up their application to run properly under a non-root user account. For that matter, the recommended installation method for a lot of software now is to run curl to fetch a URL, then pipe the output to a root-level bash shell. That is literally telling your system to do whatever some web server or anything claiming to be that server tells it to do.
Linux is getting worse because many companies are using it as "cheap" licenses without any desire to support it. Take all the "VPS" hosting running CentOS. Every single person running a CentOS system can't upgrade their system. OpenBSD, FreeBSD, very easy to upgrade their system.
The Linux Vendors want to sell you a new VPS every year instead of fixing bugs.
Also I really hate the "Libre" movement of hijacking a project (Mysql->MariaDB,OpenSSL->LibreSSL,OpenOffice->LibreOffice, etc.) Instead of fixing what's wrong with the standard distribution, they instead fork their own incompatible version which just creates more problems. The open source motto should be "fork it until all dissenters abandon it", fine I get it, open source, fork your own, blah blah blah, but nobody wants 200 versions of the same product with only trivial improvements and a whole lot of incompatibility. That's the problem with Android and Linux to begin with.
OpenSSL obviously felt compatibility was more important than addressing bugs in a timely manner, or they lacked developers able to see the significance of the bugs. Does the LibreSSL version improve on this? Absolutely not. The only thing they did was axe features that they simply didn't want to deal with instead of fixing them.
The policy of ALL operating systems should be "Do not ship your own SSL/Crypto library, do not statically compile against a crypto library, do not wrap the crypto library. This is for your own good" for anything that runs at OS boot time.