Connecting a Wall Sconce Light Fixture
Sometimes these types of lights are used to indicate a status. For instance, if the bottom light is on, the patient wants a nurse and if the top light is on the nurse needs assistance. Other scenarios are that one would have a low wattage bulb used as a night light and the other would be a higher wattage for reading and what not.
You can wire them both together and run it to a single switch. That's perfectly okay.