For cardio you can go to any park for running or biking. It’s way more fun. For strength training you can do bodyweight strength training at home with no equipment required (calisthenics).
Most people fall into the trap of paying for a gym membership, but then they never use it, because let’s face it, going to the gym wastes time and is uncomfortable.
If you train at home by using the weight of your own body for building muscle, all it takes is 10-20 minutes per day and there’s no cost and no excuse for not doing it.