Photovoltaic modules produce a voltage or current on their own. It's true that you have to connect them to a load for them to do work such as washing your laundry or heating your oven, but that load can be very cheap. Like, a wire. None of the dramatically more expensive things you're naming are necessary.
In the US you have a negative 100% subsidy on solar panels in the form of tariffs, and the planning and permit prices you're talking about are additional similar negative subsidies, not actual costs. They don't exist in Pakistan, and they could be set to zero tomorrow at the stroke of a pen, which is what has happened with balcony solar in several European countries. That's why you're talking about nonsense prices like US$30k for a household system.